forked from Mirrors/openclonk
Fix phase by xdir for DFA_Push (#2030)
parent
899fbaa867
commit
9a6772c27e
|
@ -3638,6 +3638,7 @@ void C4Object::ExecAction()
|
|||
if (GetX()==iTargetX) xdir=0;
|
||||
else { if (GetX()<iTargetX) xdir=+limit; if (GetX()>iTargetX) xdir=-limit; }
|
||||
// Phase by XDir
|
||||
iPhaseAdvance=0;
|
||||
if (xdir<0) { iPhaseAdvance=-fixtoi(xdir*10); SetDir(DIR_Left); }
|
||||
if (xdir>0) { iPhaseAdvance=+fixtoi(xdir*10); SetDir(DIR_Right); }
|
||||
// No YDir
|
||||
|
|
Loading…
Reference in New Issue