aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Hamm2002-02-13 09:17:26 +0000
committerVincent Hamm2002-02-13 09:17:26 +0000
commit14461c718b67d580bbada91e62a8dd03ff37de4c (patch)
tree2717f1caacb189b8130d10783fda3775d8328428
parent60fd1db9c55dca4871ab0cadee44cbe7ead1326b (diff)
downloadscummvm-rg350-14461c718b67d580bbada91e62a8dd03ff37de4c.tar.gz
scummvm-rg350-14461c718b67d580bbada91e62a8dd03ff37de4c.tar.bz2
scummvm-rg350-14461c718b67d580bbada91e62a8dd03ff37de4c.zip
Walkaround for the late indy4 bug. But still impossible to finish
svn-id: r3573
-rw-r--r--script_v1.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/script_v1.cpp b/script_v1.cpp
index c23f688e4c..9eb93231c9 100644
--- a/script_v1.cpp
+++ b/script_v1.cpp
@@ -874,8 +874,12 @@ void Scumm::o5_getActorMoving() {
}
void Scumm::o5_getActorRoom() {
+ int temp;
getResultPos();
- setResult(derefActorSafe(getVarOrDirectByte(0x80),"o5_getActorRoom")->room);
+ temp=getVarOrDirectByte(0x80);
+ if(temp>30 && _gameId==GID_INDY4)
+ temp=1;
+ setResult(derefActorSafe(temp,"o5_getActorRoom")->room);
}
void Scumm::o5_getActorScale() {