aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/script_e2.cpp
diff options
context:
space:
mode:
authorMax Horn2007-12-20 09:43:46 +0000
committerMax Horn2007-12-20 09:43:46 +0000
commitf44a19608792ac884ca4654eb89514d848fdeedd (patch)
tree90c4c65f7449f7b6d564c354d20bbc7e98405b1e /engines/agos/script_e2.cpp
parent15a94b7c0c9d53ec2ae7fa4dce4c62daac6040ae (diff)
downloadscummvm-rg350-f44a19608792ac884ca4654eb89514d848fdeedd.tar.gz
scummvm-rg350-f44a19608792ac884ca4654eb89514d848fdeedd.tar.bz2
scummvm-rg350-f44a19608792ac884ca4654eb89514d848fdeedd.zip
Moved all time() calls in AGOS to a single new method AGOSEngine::getTime(); also replaced an evil function-static variable by a member variable (lastMinute)
svn-id: r29908
Diffstat (limited to 'engines/agos/script_e2.cpp')
-rw-r--r--engines/agos/script_e2.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agos/script_e2.cpp b/engines/agos/script_e2.cpp
index a8f5e35547..e1ee4d4c3e 100644
--- a/engines/agos/script_e2.cpp
+++ b/engines/agos/script_e2.cpp
@@ -378,7 +378,7 @@ void AGOSEngine_Elvira2::oe2_pauseGame() {
// 135: pause game
HitArea *ha;
- time_t pauseTime = time(NULL);
+ uint32 pauseTime = getTime();
haltAnimation();
for (;;) {
@@ -400,7 +400,7 @@ void AGOSEngine_Elvira2::oe2_pauseGame() {
}
restartAnimation();
- _gameStoppedClock = time(NULL) - pauseTime + _gameStoppedClock;
+ _gameStoppedClock = getTime() - pauseTime + _gameStoppedClock;
}
void AGOSEngine_Elvira2::oe2_setDoorOpen() {