From 3469d1fb04d84840bb720c472b79f738b72a08e8 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 1 Jul 2011 20:09:36 +1000 Subject: CGE: Bugfix to correctly reset wait timeouts when done --- engines/cge/snail.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'engines') diff --git a/engines/cge/snail.cpp b/engines/cge/snail.cpp index baaac250dd..54b786722f 100644 --- a/engines/cge/snail.cpp +++ b/engines/cge/snail.cpp @@ -913,9 +913,15 @@ void SNAIL::RunCom(void) { COM *snc = &SNList[Tail]; if (! Turbo) { // only for the slower one - if (_timerExpiry && (_timerExpiry > g_system->getMillis())) - break; - else { + if (_timerExpiry) { + // Delay in progress + if (_timerExpiry > g_system->getMillis()) + // Delay not yet ended + break; + + // Delay is finished + _timerExpiry = 0; + } else { if (TextDelay) { KillText(); TextDelay = false; -- cgit v1.2.3