[Scummvm-cvs-logs] CVS: scummvm/saga sfuncs.cpp,1.87,1.88

Eugene Sandulenko sev at users.sourceforge.net
Sun Jan 23 13:53:06 CET 2005


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16400

Modified Files:
	sfuncs.cpp 
Log Message:
Another spot of kReplyOnce usage. Thanks to proper memory addressing now
it is possible to implement.


Index: sfuncs.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/sfuncs.cpp,v
retrieving revision 1.87
retrieving revision 1.88
diff -u -d -r1.87 -r1.88
--- sfuncs.cpp	23 Jan 2005 17:06:15 -0000	1.87
+++ sfuncs.cpp	23 Jan 2005 21:52:43 -0000	1.88
@@ -1543,6 +1543,8 @@
 }
 
 void Script::finishDialog(int replyID, int flags, int bitOffset) {
+	byte *addr;
+
 	if (_conversingThread) {
 		_vm->_interface->setMode(kPanelNull);
 
@@ -1551,7 +1553,8 @@
 		_conversingThread->push(replyID);
 
 		if (flags & kReplyOnce) {
-			// TODO:
+			addr = _conversingThread->_staticBase + (bitOffset >> 3);
+			*addr |=  (1 << (bitOffset & 7));
 		}
 	}
 





More information about the Scummvm-git-logs mailing list