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

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Sat Feb 14 13:52:14 CET 2009


Revision: 36321
          http://scummvm.svn.sourceforge.net/scummvm/?rev=36321&view=rev
Author:   Kirben
Date:     2009-02-14 12:52:14 +0000 (Sat, 14 Feb 2009)

Log Message:
-----------
Add missing code difference in wordMatch().

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

Modified: scummvm/trunk/engines/agos/items.cpp
===================================================================
--- scummvm/trunk/engines/agos/items.cpp	2009-02-14 00:51:07 UTC (rev 36320)
+++ scummvm/trunk/engines/agos/items.cpp	2009-02-14 12:52:14 UTC (rev 36321)
@@ -373,9 +373,13 @@
 }
 
 int AGOSEngine::wordMatch(Item *item, int16 a, int16 n) {
-	if ((a == -1) && (n == item->noun))
+	if (getGameType() == GType_ELVIRA2 || getGameType() == GType_WW) {
+		if (a == -1 && (n == -1)
+			return 1;
+	}
+	if (a == -1 && n == item->noun)
 		return 1;
-	if ((a == item->adjective) && (n == item->noun))
+	if (a == item->adjective && n == item->noun)
 		return 1 ;
 
 	return 0;


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