aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2003-08-29 15:06:00 +0000
committerTravis Howell2003-08-29 15:06:00 +0000
commitae183c8c8cc3ba0ddbcfebc3e6b41346bad5e6ad (patch)
treef86f3634af91ee535891b4f54870dd3f9a348495 /scumm
parenta9173133079fa495b935677d08c59b4c9d7b4dfe (diff)
downloadscummvm-rg350-ae183c8c8cc3ba0ddbcfebc3e6b41346bad5e6ad.tar.gz
scummvm-rg350-ae183c8c8cc3ba0ddbcfebc3e6b41346bad5e6ad.tar.bz2
scummvm-rg350-ae183c8c8cc3ba0ddbcfebc3e6b41346bad5e6ad.zip
Opcode change to load/save screen in original loom
svn-id: r9912
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v5.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp
index dc33592652..cacd4370bb 100644
--- a/scumm/script_v5.cpp
+++ b/scumm/script_v5.cpp
@@ -1019,9 +1019,16 @@ void Scumm_v5::o5_getActorY() {
void Scumm_v5::o5_getAnimCounter() {
getResultPos();
- int act = getVarOrDirectByte(0x80);
- Actor *a = derefActor(act, "o5_getAnimCounter");
- setResult(a->cost.animCounter);
+ // Loom uses this opcode in its load/save screen.
+ if (_gameId == GID_LOOM) {
+ byte a = getVarOrDirectByte(0x80);
+ warning("TODO: Loom saveLoad(%d)", a);
+ setResult(0);
+ } else {
+ int act = getVarOrDirectByte(0x80);
+ Actor *a = derefActor(act, "o5_getAnimCounter");
+ setResult(a->cost.animCounter);
+ }
}
void Scumm_v5::o5_getClosestObjActor() {