author | ecalot
<ecalot> 2005-02-26 08:56:39 UTC |
committer | ecalot
<ecalot> 2005-02-26 08:56:39 UTC |
parent | 23c2d121bbcedc954685a01e256554116515931c |
FP/src/ker/states.c | +1 | -1 |
diff --git a/FP/src/ker/states.c b/FP/src/ker/states.c index 7b2b811..6b9140b 100644 --- a/FP/src/ker/states.c +++ b/FP/src/ker/states.c @@ -290,7 +290,7 @@ short stateUpdate(tKey* key, tObject* kid,tRoom* room) { moveTo+=kid->location%STATES_STEPS_PER_TILE; /* First iteration: determine i=number of frames not cropped */ - for (i=0;(i<current->frame)&&(accumulate<moveTo);i++) { + for (i=0;(i<current->frame)&&(accumulate<=moveTo);i++) { accumulate+=current->steps[alternate(i,current->frame)]; } for (j=0;j<i;j++) {