From 565d0d0a7d4b4f87ed402bb1c237afc7f8d85ca7 Mon Sep 17 00:00:00 2001 From: Travis Howell Date: Thu, 17 May 2007 07:23:56 +0000 Subject: Add code to slowing kill the demon in DIMP. svn-id: r26857 --- engines/agos/input.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'engines/agos') 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) -- cgit v1.2.3