forked from Mirrors/openclonk
Attached objects with SolidMask (slave elevator case) can carry objects
parent
7a042ecca5
commit
6a4e5b0615
|
@ -3941,11 +3941,11 @@ void C4Object::ExecAction()
|
|||
Exit(GetX(),GetY(),r);
|
||||
}
|
||||
|
||||
// Force position
|
||||
ForcePosition(Action.Target->fix_x + Action.Target->Shape.VtxX[Action.Data&255]
|
||||
-Shape.VtxX[Action.Data>>8],
|
||||
// Move position (so objects on solidmask move)
|
||||
MovePosition(Action.Target->fix_x + Action.Target->Shape.VtxX[Action.Data&255]
|
||||
-Shape.VtxX[Action.Data>>8] - fix_x,
|
||||
Action.Target->fix_y + Action.Target->Shape.VtxY[Action.Data&255]
|
||||
-Shape.VtxY[Action.Data>>8]);
|
||||
-Shape.VtxY[Action.Data>>8] - fix_y);
|
||||
// must zero motion...
|
||||
xdir=ydir=0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue