aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-05-31 17:18:41 +0000
committerMax Horn2003-05-31 17:18:41 +0000
commit1c0da0a89ca0006b43e35863e7efbbfb749b2191 (patch)
treec354f4e9083d6b1fb8999772679ae44d1179d079 /scumm
parent3290d618d62f71b5c77e303ab7dcddc9d489cc85 (diff)
downloadscummvm-rg350-1c0da0a89ca0006b43e35863e7efbbfb749b2191.tar.gz
scummvm-rg350-1c0da0a89ca0006b43e35863e7efbbfb749b2191.tar.bz2
scummvm-rg350-1c0da0a89ca0006b43e35863e7efbbfb749b2191.zip
apply V6 elevation change to V8, too
svn-id: r8186
Diffstat (limited to 'scumm')
-rw-r--r--scumm/script_v6.cpp6
-rw-r--r--scumm/script_v8.cpp7
2 files changed, 8 insertions, 5 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp
index c593823b2d..670dd3a578 100644
--- a/scumm/script_v6.cpp
+++ b/scumm/script_v6.cpp
@@ -1653,9 +1653,9 @@ void Scumm_v6::o6_actorOps() {
a->initActor(0);
break;
case 84: /* actor-elevation */
- k = pop();
- if (k != a->elevation) {
- a->elevation = k;
+ i = pop();
+ if (i != a->elevation) {
+ a->elevation = i;
a->needRedraw = true;
}
break;
diff --git a/scumm/script_v8.cpp b/scumm/script_v8.cpp
index 7ffea222bd..19b2072f72 100644
--- a/scumm/script_v8.cpp
+++ b/scumm/script_v8.cpp
@@ -1067,8 +1067,11 @@ void Scumm_v8::o8_actorOps() {
a->initActor(0);
break;
case 0x6E: // SO_ACTOR_ELEVATION
- a->elevation = pop();
- a->needRedraw = true;
+ i = pop();
+ if (i != a->elevation) {
+ a->elevation = i;
+ a->needRedraw = true;
+ }
break;
case 0x6F: // SO_ACTOR_PALETTE Set actor palette
j = pop();