aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorD G Turner2012-07-01 06:20:53 +0100
committerD G Turner2012-07-01 06:20:53 +0100
commitd335b78003f3d28d1c9c9aeddf6a46ad1c5f4888 (patch)
tree2945e3ca8a345e72eaaa7f95ca50be627154a28e
parent50136f43c7de4889444d9de19ff5d99f2cc04bf7 (diff)
downloadscummvm-rg350-d335b78003f3d28d1c9c9aeddf6a46ad1c5f4888.tar.gz
scummvm-rg350-d335b78003f3d28d1c9c9aeddf6a46ad1c5f4888.tar.bz2
scummvm-rg350-d335b78003f3d28d1c9c9aeddf6a46ad1c5f4888.zip
DREAMWEB: Fix minor regression with Ryan's watch.
Using Ryan's watch within the game, the watch time always started at 19.30 from point of use, which did not seem correct. Checking with the original CD and Floppy interpreters under DOSBox showed they used the current system time, so this was incorrect. Bisection shows that this regression was introduced by commit 57e940f67896e0f085de23088754fe1682cd49db i.e. "DREAMWEB: Move all saved variables to a GameVars struct" and was probably a side effect of a minor call ordering change in the equivalent of setupInitialVars() with respect to the getTime() call. However, to ensure no further regressions, it was easier to fix this by replacing the initial value setting by a getTime() call.
-rw-r--r--engines/dreamweb/stubs.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/dreamweb/stubs.cpp b/engines/dreamweb/stubs.cpp
index 4515939ebc..f235f7c2fd 100644
--- a/engines/dreamweb/stubs.cpp
+++ b/engines/dreamweb/stubs.cpp
@@ -2920,9 +2920,7 @@ void DreamWebEngine::setupInitialVars() {
_vars._progressPoints = 0;
_vars._watchOn = 0;
_vars._shadesOn = 0;
- _vars._secondCount = 0;
- _vars._minuteCount = 30;
- _vars._hourCount = 19;
+ getTime();
_vars._zoomOn = 1;
_vars._location = 0;
_vars._exPos = 0;