[Scummvm-cvs-logs] SF.net SVN: scummvm:[36323] scummvm/branches/branch-0-13-0/engines/agos/ items.cpp

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


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

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

Modified Paths:
--------------
    scummvm/branches/branch-0-13-0/engines/agos/items.cpp

Modified: scummvm/branches/branch-0-13-0/engines/agos/items.cpp
===================================================================
--- scummvm/branches/branch-0-13-0/engines/agos/items.cpp	2009-02-14 12:56:09 UTC (rev 36322)
+++ scummvm/branches/branch-0-13-0/engines/agos/items.cpp	2009-02-14 12:59:34 UTC (rev 36323)
@@ -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