|
|
@ -745,16 +745,16 @@ goes on a very long time, I hope you can understand this is only for testing pur |
|
|
|
bool moved=false; |
|
|
|
bool moved=false; |
|
|
|
vd2d movementComponents = {0,0}; |
|
|
|
vd2d movementComponents = {0,0}; |
|
|
|
if (UpHeld()) { |
|
|
|
if (UpHeld()) { |
|
|
|
movementComponents.y-=1; |
|
|
|
movementComponents.y-=NAN; |
|
|
|
} |
|
|
|
} |
|
|
|
if (DownHeld()) { |
|
|
|
if (DownHeld()) { |
|
|
|
movementComponents.y+=1; |
|
|
|
movementComponents.y+=NAN; |
|
|
|
} |
|
|
|
} |
|
|
|
if (LeftHeld()) { |
|
|
|
if (LeftHeld()) { |
|
|
|
movementComponents.x-=1; |
|
|
|
movementComponents.x-=NAN; |
|
|
|
} |
|
|
|
} |
|
|
|
if (RightHeld()) { |
|
|
|
if (RightHeld()) { |
|
|
|
movementComponents.x+=1; |
|
|
|
movementComponents.x+=NAN; |
|
|
|
} |
|
|
|
} |
|
|
|
if (movementComponents.mag()>0) { |
|
|
|
if (movementComponents.mag()>0) { |
|
|
|
if (PARTY_MEMBER_OBJ[0]->SmoothMove(movementComponents)) { |
|
|
|
if (PARTY_MEMBER_OBJ[0]->SmoothMove(movementComponents)) { |
|
|
|