[Scummvm-cvs-logs] CVS: scummvm resource.cpp,1.36,1.37

James Brown ender at users.sourceforge.net
Sun Feb 17 02:51:03 CET 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv8792

Modified Files:
	resource.cpp 
Log Message:
Indy3 charset crash fix.



Index: resource.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/resource.cpp,v
retrieving revision 1.36
retrieving revision 1.37
diff -C2 -d -r1.36 -r1.37
*** resource.cpp	16 Feb 2002 19:03:14 -0000	1.36
--- resource.cpp	17 Feb 2002 10:50:34 -0000	1.37
***************
*** 25,29 ****
  /* Open a room */
  void Scumm::openRoom(int room) {
! 	uint room_offs;
  	char buf[256];
  
--- 25,29 ----
  /* Open a room */
  void Scumm::openRoom(int room) {
! 	uint room_offs, roomlimit;
  	char buf[256];
  
***************
*** 49,53 ****
  		room_offs = _roomFileOffsets[room];
  #else
!                 if(_features & GF_EXTERNAL_CHARSET && room>=900)
                          room_offs = 0;
                  else
--- 49,54 ----
  		room_offs = _roomFileOffsets[room];
  #else
! 				if( _features & GF_SMALL_NAMES) roomlimit = 98; else roomlimit=900;
!                 if(_features & GF_EXTERNAL_CHARSET && room>=roomlimit)
                          room_offs = 0;
                  else





More information about the Scummvm-git-logs mailing list