From 7201437206f62d9be004cca263ee92d2e671510f Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 3 Jun 2007 19:15:59 +0000 Subject: The animation frame counter is updated correctly now, so all animations in IHNM where the engine is waiting are displayed fully. Big thanks to sev, once again :) svn-id: r27070 --- engines/saga/actor.cpp | 2 ++ engines/saga/saga.cpp | 2 -- engines/saga/sfuncs.cpp | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/engines/saga/actor.cpp b/engines/saga/actor.cpp index 6ea8674e8e..8527f1801b 100644 --- a/engines/saga/actor.cpp +++ b/engines/saga/actor.cpp @@ -1626,6 +1626,8 @@ void Actor::handleActions(int msec, bool setup) { } } } + // Update frameCount for sfWaitFrames in IHNM + _vm->_frameCount++; } void Actor::direct(int msec) { diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 784b9278ca..3ce0e08d9c 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -295,8 +295,6 @@ int SagaEngine::go() { // Per frame processing _render->drawScene(); _system->delayMillis(10); - // Update frameCount for sfWaitFrames in IHNM - _frameCount++; } return 0; diff --git a/engines/saga/sfuncs.cpp b/engines/saga/sfuncs.cpp index 28dfb4f6f7..5190537db8 100644 --- a/engines/saga/sfuncs.cpp +++ b/engines/saga/sfuncs.cpp @@ -1887,6 +1887,7 @@ void Script::sfResetMouseClicks(SCRIPTFUNC_PARAMS) { SF_stub("sfResetMouseClicks", thread, nArgs); } +// Used in IHNM only // Param1: frames void Script::sfWaitFrames(SCRIPTFUNC_PARAMS) { int16 frames; -- cgit v1.2.3