[Scummvm-cvs-logs] CVS: scummvm/scumm room.cpp,1.3,1.4

Eugene Sandulenko sev at users.sourceforge.net
Sun Apr 10 15:44:28 CEST 2005


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

Modified Files:
	room.cpp 
Log Message:
Fix regression in MM NES which disabled scrolling and lead to weird crashes


Index: room.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/room.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- room.cpp	10 Apr 2005 12:58:57 -0000	1.3
+++ room.cpp	10 Apr 2005 22:43:46 -0000	1.4
@@ -554,8 +554,8 @@
 	
 	if (_version == 1) {
 		if (_features & GF_NES) {
-			_roomWidth = READ_LE_UINT16(&(rmhd->old.width));
-			_roomHeight = READ_LE_UINT16(&(rmhd->old.height));
+			_roomWidth = READ_LE_UINT16(&(rmhd->old.width)) * 8;
+			_roomHeight = READ_LE_UINT16(&(rmhd->old.height)) * 8;
 
 			// HACK: To let our code work normal with narrow rooms we
 			// adjust width. It will render garbage on right edge but we do





More information about the Scummvm-git-logs mailing list