[Scummvm-cvs-logs] CVS: scummvm/queen verb.h,1.2,1.3

Gregory Montoir cyx at users.sourceforge.net
Thu Oct 30 10:20:02 CET 2003


Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv13029

Modified Files:
	verb.h 
Log Message:
really return verb name

Index: verb.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/verb.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- verb.h	30 Oct 2003 13:08:38 -0000	1.2
+++ verb.h	30 Oct 2003 18:19:03 -0000	1.3
@@ -126,13 +126,20 @@
 		return _verb == VERB_NONE;
 	}
 
+	int inventoryItem() const {
+		if (isInventory()) {
+			return _verb - VERB_INV_FIRST;
+		}
+		return -1;
+	}
+
 	VerbEnum value() const {
 		return _verb;
 	}
 
 	const char* name() const {
 		if (_verb > 0 && _verb < 13) {
-			_verbName[_verb];
+			return _verbName[_verb];
 		}
 		return NULL;
 	}





More information about the Scummvm-git-logs mailing list