diff options
author | Travis Howell | 2007-05-17 07:23:56 +0000 |
---|---|---|
committer | Travis Howell | 2007-05-17 07:23:56 +0000 |
commit | 565d0d0a7d4b4f87ed402bb1c237afc7f8d85ca7 (patch) | |
tree | df577ff202d60f58826378ca250bb0fb2112396b | |
parent | 67ba6b1e4064de28b27a5979ccf88086aecdaced (diff) | |
download | scummvm-rg350-565d0d0a7d4b4f87ed402bb1c237afc7f8d85ca7.tar.gz scummvm-rg350-565d0d0a7d4b4f87ed402bb1c237afc7f8d85ca7.tar.bz2 scummvm-rg350-565d0d0a7d4b4f87ed402bb1c237afc7f8d85ca7.zip |
Add code to slowing kill the demon in DIMP.
svn-id: r26857
-rw-r--r-- | engines/agos/input.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/engines/agos/input.cpp b/engines/agos/input.cpp index d04d4a783e..efe7eb2d24 100644 --- a/engines/agos/input.cpp +++ b/engines/agos/input.cpp @@ -388,6 +388,9 @@ void AGOSEngine::hitarea_stuff_helper() { if (kickoffTimeEvents()) permitInput(); } + + if (getGameId() == GID_DIMP) + delay(200); } void AGOSEngine::hitarea_stuff_helper_2() { @@ -454,6 +457,20 @@ void AGOSEngine::permitInput() { bool AGOSEngine::processSpecialKeys() { bool verbCode = false; + if (getGameId() == GID_DIMP) { + static time_t lastMinute = 0; + time_t t; + time_t t1; + t = time(&t); + t1 = t / 30; + if (!lastMinute) + lastMinute = t1; + if (t1 - lastMinute) { + _variableArray[120] += (t1 - lastMinute); + lastMinute = t1; + } + } + switch (_keyPressed) { case 17: // Up if (getGameType() == GType_PP) |