diff options
author | Max Horn | 2003-05-23 00:04:17 +0000 |
---|---|---|
committer | Max Horn | 2003-05-23 00:04:17 +0000 |
commit | 47246c35b316adcdba95ec98b0552a895a988eb4 (patch) | |
tree | fb721eff232dfd45a214a0549dc3e4572df1da76 | |
parent | beb42d72818055044c14e7345df2d19ab47583c5 (diff) | |
download | scummvm-rg350-47246c35b316adcdba95ec98b0552a895a988eb4.tar.gz scummvm-rg350-47246c35b316adcdba95ec98b0552a895a988eb4.tar.bz2 scummvm-rg350-47246c35b316adcdba95ec98b0552a895a988eb4.zip |
this fixme doesn't seem to be needed anymore
svn-id: r7839
-rw-r--r-- | scumm/script_v2.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index d1b421b077..946fc45897 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -996,15 +996,11 @@ void Scumm_v2::o2_putActor() { Actor *a; a = derefActorSafe(act, "o2_putActor"); + assert(a); + x = getVarOrDirectByte(0x40) * 8; y = getVarOrDirectByte(0x20) * 2; - if (!a) { - // FIXME - this shouldn't be necessary but for now works around problems - // in the Zak intro. - warning("o2_putActor: actor %d not found", act); - return; - } a->putActor(x, y, a->room); } @@ -1036,6 +1032,8 @@ void Scumm_v2::o2_putActorAtObject() { Actor *a; a = derefActorSafe(getVarOrDirectByte(0x80), "o2_putActorAtObject"); + assert(a); + obj = getVarOrDirectByte(0x40); if (whereIsObject(obj) != WIO_NOT_FOUND) getObjectXYPos(obj, x, y); @@ -1043,6 +1041,7 @@ void Scumm_v2::o2_putActorAtObject() { x = 240; y = 120; } + a->putActor(x, y, a->room); } |