Skip to content

Commit

Permalink
Fix phase by xdir for DFA_Push (#2030)
Browse files Browse the repository at this point in the history
  • Loading branch information
lluchs committed Apr 18, 2018
1 parent 899fbaa commit 9a6772c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/object/C4Object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9a6772c

Please sign in to comment.