[Scummvm-cvs-logs] SF.net SVN: scummvm:[40024] scummvm/trunk/engines/agos/input.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Mon Apr 20 12:07:19 CEST 2009


Revision: 40024
          http://scummvm.svn.sourceforge.net/scummvm/?rev=40024&view=rev
Author:   Kirben
Date:     2009-04-20 10:07:18 +0000 (Mon, 20 Apr 2009)

Log Message:
-----------
Enable the arrow keys in Elvira 1/2.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/input.cpp

Modified: scummvm/trunk/engines/agos/input.cpp
===================================================================
--- scummvm/trunk/engines/agos/input.cpp	2009-04-20 05:19:42 UTC (rev 40023)
+++ scummvm/trunk/engines/agos/input.cpp	2009-04-20 10:07:18 UTC (rev 40024)
@@ -199,8 +199,7 @@
 					_keyPressed.keycode == Common::KEYCODE_F10)
 				displayBoxStars();
 			if (processSpecialKeys()) {
-				if ((getGameType() == GType_PP && getGameId() != GID_DIMP) ||
-					getGameType() == GType_WW)
+				if (getGameId() != GID_DIMP)
 					goto out_of_here;
 			}
 			if (_lastHitArea3 == (HitArea *) -1) {
@@ -474,6 +473,10 @@
 			_verbHitArea = 302;
 		else if (getGameType() == GType_WW)
 			_verbHitArea = 239;
+		else if (getGameType() == GType_ELVIRA2 && isBoxDead(101))
+			_verbHitArea = 200;
+		else if (getGameType() == GType_ELVIRA1 && isBoxDead(101))
+			_verbHitArea = 214;
 		verbCode = true;
 		break;
 	case Common::KEYCODE_DOWN:
@@ -481,6 +484,10 @@
 			_verbHitArea = 304;
 		else if (getGameType() == GType_WW)
 			_verbHitArea = 241;
+		else if (getGameType() == GType_ELVIRA2 && isBoxDead(107))
+			_verbHitArea = 202;
+		else if (getGameType() == GType_ELVIRA1 && isBoxDead(105))
+			_verbHitArea = 215;
 		verbCode = true;
 		break;
 	case Common::KEYCODE_RIGHT:
@@ -488,6 +495,10 @@
 			_verbHitArea = 303;
 		else if (getGameType() == GType_WW)
 			_verbHitArea = 240;
+		else if (getGameType() == GType_ELVIRA2 && isBoxDead(102))
+			_verbHitArea = 201;
+		else if (getGameType() == GType_ELVIRA1 && isBoxDead(103))
+			_verbHitArea = 216;
 		verbCode = true;
 		break;
 	case Common::KEYCODE_LEFT:
@@ -495,6 +506,10 @@
 			_verbHitArea = 301;
 		else if (getGameType() == GType_WW)
 			_verbHitArea = 242;
+		else if (getGameType() == GType_ELVIRA2 && isBoxDead(104))
+			_verbHitArea = 203;
+		else if (getGameType() == GType_ELVIRA1 && isBoxDead(107))
+			_verbHitArea = 217;
 		verbCode = true;
 		break;
 	case Common::KEYCODE_ESCAPE:


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