[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6he.cpp,2.17,2.18
Travis Howell
kirben at users.sourceforge.net
Thu Feb 19 00:33:01 CET 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv959/scumm
Modified Files:
script_v6he.cpp
Log Message:
Fatty Bear games use positive size values in these opcodes.
Index: script_v6he.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6he.cpp,v
retrieving revision 2.17
retrieving revision 2.18
diff -u -d -r2.17 -r2.18
--- script_v6he.cpp 16 Feb 2004 05:53:17 -0000 2.17
+++ script_v6he.cpp 19 Feb 2004 08:21:59 -0000 2.18
@@ -1031,6 +1031,10 @@
int32 size = pop();
int slot = pop();
+ // Fatty Bear uses positive values
+ if (_gameId == GID_FBEAR)
+ size = -size;
+
if (size == -2) {
push(_hFileTable[slot].readUint16LE());
} else if (size == -1) {
@@ -1053,6 +1057,10 @@
int16 resID = pop();
int slot = pop();
+ // Fatty Bear uses positive values
+ if (_gameId == GID_FBEAR)
+ size = -size;
+
if (size == -2) {
_hFileTable[slot].writeUint16LE(resID);
} else if (size == -1) {
More information about the Scummvm-git-logs
mailing list