aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorTravis Howell2005-04-16 10:26:49 +0000
committerTravis Howell2005-04-16 10:26:49 +0000
commit43aab9eabb89c8e9418f98be20b6f6c4d355284f (patch)
treec529c241689b402d9ccbd53e10f660984a56ad43 /scumm
parent57711d54fe768a78abe6af54a56b579bdebad262 (diff)
downloadscummvm-rg350-43aab9eabb89c8e9418f98be20b6f6c4d355284f.tar.gz
scummvm-rg350-43aab9eabb89c8e9418f98be20b6f6c4d355284f.tar.bz2
scummvm-rg350-43aab9eabb89c8e9418f98be20b6f6c4d355284f.zip
Cleanup
svn-id: r17615
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v6.cpp22
-rw-r--r--scumm/script_v7he.cpp3
2 files changed, 12 insertions, 13 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index 736f103ce1..680192a4be 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -386,7 +386,7 @@ const char *ScummEngine_v6::getOpcodeDesc(byte i) {
int ScummEngine_v6::popRoomAndObj(int *room) {
int obj;
- if (_version >= 7 || _heversion >= 70) {
+ if (_version >= 7) {
obj = pop();
*room = getObjectRoom(obj);
} else {
@@ -986,7 +986,13 @@ void ScummEngine_v6::o6_cursorCommand() {
break;
case 0x99: // SO_CURSOR_IMAGE Set cursor image
{
- int room, obj = popRoomAndObj(&room);
+ int room, obj;
+ if (_heversion >= 70) {
+ obj = pop();
+ room = getObjectRoom(obj);
+ } else {
+ obj = popRoomAndObj(&room);
+ }
setCursorFromImg(obj, room, 1);
break;
}
@@ -1239,11 +1245,7 @@ void ScummEngine_v6::o6_putActorAtObject() {
int room, obj, x, y;
Actor *a;
- if (_features & GF_HUMONGOUS) {
- room = pop();
- obj = pop();
- } else
- obj = popRoomAndObj(&room);
+ obj = popRoomAndObj(&room);
a = derefActor(pop(), "o6_putActorAtObject");
if (whereIsObject(obj) != WIO_NOT_FOUND) {
@@ -1323,11 +1325,7 @@ void ScummEngine_v6::o6_loadRoomWithEgo() {
y = pop();
x = pop();
- if (_features & GF_HUMONGOUS) {
- room = pop();
- obj = pop();
- } else
- obj = popRoomAndObj(&room);
+ obj = popRoomAndObj(&room);
a = derefActor(VAR(VAR_EGO), "o6_loadRoomWithEgo");
a->putActor(0, 0, room);
diff --git a/scumm/script_v7he.cpp b/scumm/script_v7he.cpp
index 6950a887d3..7fa5154312 100644
--- a/scumm/script_v7he.cpp
+++ b/scumm/script_v7he.cpp
@@ -599,7 +599,8 @@ void ScummEngine_v70he::o70_resourceRoutines() {
break;
case 119: // SO_LOAD_OBJECT
{
- int room, obj = popRoomAndObj(&room);
+ int obj = pop();
+ int room = getObjectRoom(obj);
loadFlObject(obj, room);
break;
}