aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorSven Hesse2007-08-19 20:31:48 +0000
committerSven Hesse2007-08-19 20:31:48 +0000
commit07586c378e42dcfa3d1024c19f9e8b3997bbd5c6 (patch)
tree47e7a0e1f58d9807cbbe6df16c2a852cc5ccf3eb /engines/gob
parentdf9414c9a194625c9423478a895a412e1f30aeda (diff)
downloadscummvm-rg350-07586c378e42dcfa3d1024c19f9e8b3997bbd5c6.tar.gz
scummvm-rg350-07586c378e42dcfa3d1024c19f9e8b3997bbd5c6.tar.bz2
scummvm-rg350-07586c378e42dcfa3d1024c19f9e8b3997bbd5c6.zip
Small correction
svn-id: r28670
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/game_v1.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/game_v1.cpp b/engines/gob/game_v1.cpp
index d8ebcf1802..3f681ddd1f 100644
--- a/engines/gob/game_v1.cpp
+++ b/engines/gob/game_v1.cpp
@@ -397,9 +397,9 @@ int16 Game_v1::checkCollisions(byte handleMouse, int16 deltaTime,
// Additionally, I added a 'deltaTime == -1' check there, since
// when this function is called with deltaTime == -1 in inputArea,
// and the return value is then discarded.
- if (deltaTime < 0 && !firstIteration) {
+ if (deltaTime < 0) {
uint32 curtime = _vm->_util->getTimeKey();
- if ((deltaTime == -1) || ((curtime + deltaTime) > timeKey)) {
+ if ((deltaTime == -1) || (((curtime + deltaTime) > timeKey) && !firstIteration)) {
if (pResId != 0)
*pResId = 0;