diff options
author | Max Horn | 2004-01-05 16:19:14 +0000 |
---|---|---|
committer | Max Horn | 2004-01-05 16:19:14 +0000 |
commit | a469559d134822121b2268aebc9ca733985c2146 (patch) | |
tree | ad2e3f3b77092292db301cec9a20e7509b5064cf /scumm/script_v6.cpp | |
parent | 6a7cf6d6cfb4be5d212a8d27304e11820125679e (diff) | |
download | scummvm-rg350-a469559d134822121b2268aebc9ca733985c2146.tar.gz scummvm-rg350-a469559d134822121b2268aebc9ca733985c2146.tar.bz2 scummvm-rg350-a469559d134822121b2268aebc9ca733985c2146.zip |
added Actor::getElevation and Actor::setElevation; cleaned up costume API a bit; some minor cleanup/tweaks
svn-id: r12160
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index f2e8637984..725c68615b 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -1254,7 +1254,7 @@ void ScummEngine_v6::o6_getActorCostume() { void ScummEngine_v6::o6_getActorElevation() { Actor *a = derefActor(pop(), "o6_getActorElevation"); - push(a->elevation); + push(a->getElevation()); } void ScummEngine_v6::o6_getActorWidth() { @@ -1692,11 +1692,7 @@ void ScummEngine_v6::o6_actorOps() { a->initActor(0); break; case 84: // SO_ELEVATION - i = pop(); - if (i != a->elevation) { - a->elevation = i; - a->needRedraw = true; - } + a->setElevation(pop()); break; case 85: // SO_ANIMATION_DEFAULT a->initFrame = 1; |