From 3ba184b21f31e24f58a594b82ef72cc05802d822 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sun, 3 Jun 2007 02:39:44 +0000 Subject: Moved the updating of framecount to a more appropriate place svn-id: r27060 --- engines/saga/actor.cpp | 4 ---- engines/saga/saga.cpp | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'engines/saga') diff --git a/engines/saga/actor.cpp b/engines/saga/actor.cpp index 5b9b05f908..6ea8674e8e 100644 --- a/engines/saga/actor.cpp +++ b/engines/saga/actor.cpp @@ -1811,10 +1811,6 @@ void Actor::drawActors() { createDrawOrderList(); - // Update frameCount for sfWaitFrames in IHNM - // TODO: is this the correct place to do this? - _vm->_frameCount++; - for (drawOrderIterator = _drawOrderList.begin(); drawOrderIterator != _drawOrderList.end(); ++drawOrderIterator) { drawObject = drawOrderIterator.operator*(); diff --git a/engines/saga/saga.cpp b/engines/saga/saga.cpp index 3ce0e08d9c..784b9278ca 100644 --- a/engines/saga/saga.cpp +++ b/engines/saga/saga.cpp @@ -295,6 +295,8 @@ int SagaEngine::go() { // Per frame processing _render->drawScene(); _system->delayMillis(10); + // Update frameCount for sfWaitFrames in IHNM + _frameCount++; } return 0; -- cgit v1.2.3