aboutsummaryrefslogtreecommitdiff
path: root/engines/groovie/groovie.cpp
diff options
context:
space:
mode:
authorScott Thomas2008-12-30 10:19:16 +0000
committerScott Thomas2008-12-30 10:19:16 +0000
commitbc378bdb8f127f1f1923f30402fb4a12d83170b8 (patch)
tree2b30892ad561a31ea2b84535fa23c72f15dc8300 /engines/groovie/groovie.cpp
parentf32f4e5cec18c95daa13ff59d993cdc82d43f825 (diff)
downloadscummvm-rg350-bc378bdb8f127f1f1923f30402fb4a12d83170b8.tar.gz
scummvm-rg350-bc378bdb8f127f1f1923f30402fb4a12d83170b8.tar.bz2
scummvm-rg350-bc378bdb8f127f1f1923f30402fb4a12d83170b8.zip
Fix for dialogue from Stauf and Ego during puzzles.
svn-id: r35620
Diffstat (limited to 'engines/groovie/groovie.cpp')
-rw-r--r--engines/groovie/groovie.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/engines/groovie/groovie.cpp b/engines/groovie/groovie.cpp
index e54023aac6..bbae45da3a 100644
--- a/engines/groovie/groovie.cpp
+++ b/engines/groovie/groovie.cpp
@@ -165,6 +165,9 @@ Common::Error GroovieEngine::go() {
checkCD();
+ // Game timer counter
+ uint16 tmr = 0;
+
// Initialize the CD
int cd_num = ConfMan.getInt("cdrom");
if (cd_num >= 0)
@@ -217,9 +220,17 @@ Common::Error GroovieEngine::go() {
}
if (_waitingForInput) {
- // Still waiting for input, just update the mouse and wait a bit more
+ // Still waiting for input, just update the mouse, game timer and then wait a bit more
_cursorMan->animate();
_system->updateScreen();
+ tmr++;
+ // Wait a little bit between increments. While mouse is moving, this triggers
+ // only negligably slower.
+ if (tmr > 4) {
+ _script.timerTick();
+ tmr = 0;
+ }
+
_system->delayMillis(50);
} else if (_graphicsMan->isFading()) {
// We're waiting for a fading to end, let the CPU rest