aboutsummaryrefslogtreecommitdiff
path: root/script_v1.cpp
diff options
context:
space:
mode:
authorJames Brown2002-08-20 09:58:35 +0000
committerJames Brown2002-08-20 09:58:35 +0000
commitca4789c2ffff32213aaf90f656524f44f83d5830 (patch)
treea752532146bea5e2d8d1a319801e3b09c5a0e782 /script_v1.cpp
parentf3ceaf7f81246a3ddc5e09b2710d2627a3a412ba (diff)
downloadscummvm-rg350-ca4789c2ffff32213aaf90f656524f44f83d5830.tar.gz
scummvm-rg350-ca4789c2ffff32213aaf90f656524f44f83d5830.tar.bz2
scummvm-rg350-ca4789c2ffff32213aaf90f656524f44f83d5830.zip
Fix lighting on actors in V6+ games (eg, Sam and Max)
Move boxflags debug to debug level 2 (we default to 1) Apply patches: 595414: Simon 2 lockup workarounds 595875: Simon 2 save/load dialog fix 597422: Preliminary support for CREA sound format (for FT) 597627: Use savedir for save/load-string opcodes svn-id: r4779
Diffstat (limited to 'script_v1.cpp')
-rw-r--r--script_v1.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/script_v1.cpp b/script_v1.cpp
index 2fa4c55890..c056de812d 100644
--- a/script_v1.cpp
+++ b/script_v1.cpp
@@ -1989,7 +1989,10 @@ void Scumm::o5_roomOps()
FILE *out;
a = getVarOrDirectByte(0x80);
- s = buf;
+
+ // FIXME - check for buffer overflow
+ strcpy(buf, getSavePath());
+ s = buf + strlen(buf);
while ((*s++ = fetchScriptByte()));
// Use buf as filename
@@ -2007,7 +2010,10 @@ void Scumm::o5_roomOps()
FILE *in;
a = getVarOrDirectByte(0x80);
- s = buf;
+
+ // FIXME - check for buffer overflow
+ strcpy(buf, getSavePath());
+ s = buf + strlen(buf);
while ((*s++ = fetchScriptByte()));
// Use buf as filename