[Scummvm-cvs-logs] SF.net SVN: scummvm: [26857] scummvm/trunk/engines/agos/input.cpp
kirben at users.sourceforge.net
kirben at users.sourceforge.net
Thu May 17 09:23:57 CEST 2007
Revision: 26857
http://scummvm.svn.sourceforge.net/scummvm/?rev=26857&view=rev
Author: kirben
Date: 2007-05-17 00:23:56 -0700 (Thu, 17 May 2007)
Log Message:
-----------
Add code to slowing kill the demon in DIMP.
Modified Paths:
--------------
scummvm/trunk/engines/agos/input.cpp
Modified: scummvm/trunk/engines/agos/input.cpp
===================================================================
--- scummvm/trunk/engines/agos/input.cpp 2007-05-16 22:44:22 UTC (rev 26856)
+++ scummvm/trunk/engines/agos/input.cpp 2007-05-17 07:23:56 UTC (rev 26857)
@@ -388,6 +388,9 @@
if (kickoffTimeEvents())
permitInput();
}
+
+ if (getGameId() == GID_DIMP)
+ delay(200);
}
void AGOSEngine::hitarea_stuff_helper_2() {
@@ -454,6 +457,20 @@
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)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list