author | ecalot
<ecalot> 2005-02-26 09:00:02 UTC |
committer | ecalot
<ecalot> 2005-02-26 09:00:02 UTC |
parent | 8b617d242ae7ae338fef132b0189aeeabaec556e |
FP/src/ker/states.c | +2 | -0 |
diff --git a/FP/src/ker/states.c b/FP/src/ker/states.c index 6b9140b..b0e0af0 100644 --- a/FP/src/ker/states.c +++ b/FP/src/ker/states.c @@ -309,6 +309,8 @@ short stateUpdate(tKey* key, tObject* kid,tRoom* room) { #ifdef DEBUGSTATES printf("total frames=%d number of frames to be used=%d. wanted movement=%d movement to be performed=%d\n",current->frame,i,statesActionList[action].moveOffset,accumulate); #endif + /* force at least one animation */ + if (!i) i=1; current->frame=i; /* now the last frames are moved, crop the animation */ break; }