[Scummvm-cvs-logs] CVS: scummvm/scumm scummvm.cpp,2.232,2.233

Max Horn fingolfin at users.sourceforge.net
Fri Jun 13 02:12:05 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv29621

Modified Files:
	scummvm.cpp 
Log Message:
fix for bug #752860 (based on patch #748675)

Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.232
retrieving revision 2.233
diff -u -d -r2.232 -r2.233
--- scummvm.cpp	12 Jun 2003 16:38:42 -0000	2.232
+++ scummvm.cpp	13 Jun 2003 09:11:31 -0000	2.233
@@ -1103,6 +1103,11 @@
 		_lastSaveTime = _system->get_msecs();
 	}
 
+	int oldEgo = 0;
+	
+	if (VAR_EGO != 0xFF)
+		oldEgo = VAR(VAR_EGO);
+
 	if (_completeScreenRedraw) {
 		_completeScreenRedraw = false;
 		gdi.clearCharsetMask();
@@ -1184,8 +1189,14 @@
 		}
 		_verbRedraw = false;
 
-		if (_version <= 2)
+		if (_version <= 2) {
+			if (oldEgo != VAR(VAR_EGO)) {
+				// FIXME: Reset and redraw the sentence line
+				oldEgo = VAR(VAR_EGO);
+				redrawV2Inventory();
+			}
 			checkV2MouseOver(_mouse);
+		}
 
 		drawBlastTexts();
 		drawBlastObjects();





More information about the Scummvm-git-logs mailing list