Skip to content
Permalink
Browse files

Fix phase by xdir for DFA_Push (#2030)

  • Loading branch information
lluchs committed Apr 18, 2018
1 parent 899fbaa commit 9a6772c27ecbb4b5d2abc8d20d6b6d3d00c9252e
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/object/C4Object.cpp
@@ -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

0 comments on commit 9a6772c

Please sign in to comment.
You can’t perform that action at this time.