[Scummvm-cvs-logs] CVS: scummvm script_v1.cpp,1.24,1.25
Vincent Hamm
yazoo at users.sourceforge.net
Thu Feb 14 12:54:02 CET 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv18300
Modified Files:
script_v1.cpp
Log Message:
Fixed a Zak256 resource bug...
Index: script_v1.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/script_v1.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** script_v1.cpp 14 Feb 2002 17:02:07 -0000 1.24
--- script_v1.cpp 14 Feb 2002 20:47:47 -0000 1.25
***************
*** 1295,1298 ****
--- 1295,1300 ----
if (_opcode != 17)
res = getVarOrDirectByte(0x80);
+ if(_gameId == GID_ZAK256) /*FIXME: find a better way to implement this */
+ _opcode&=0x3F;
switch(_opcode&0x1F) {
case 1: /* load script */
***************
*** 1306,1310 ****
break;
case 4: /* load room */
! ensureResourceLoaded(rtRoom, res);
break;
case 5: /* nuke script */
--- 1308,1315 ----
break;
case 4: /* load room */
! if(_gameId == GID_ZAK256)
! ensureResourceLoaded(rtScript, res & 0x7F); /*FIXME: missing stuff...*/
! else
! ensureResourceLoaded(rtRoom, res);
break;
case 5: /* nuke script */
More information about the Scummvm-git-logs
mailing list