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_v2.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_v2.cpp')
-rw-r--r-- | scumm/script_v2.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scumm/script_v2.cpp b/scumm/script_v2.cpp index d21c844943..6fc9047594 100644 --- a/scumm/script_v2.cpp +++ b/scumm/script_v2.cpp @@ -1153,7 +1153,7 @@ void ScummEngine_v2::o2_getActorElevation() { getResultPos(); int act = getVarOrDirectByte(PARAM_1); Actor *a = derefActor(act, "o2_getActorElevation"); - setResult(a->elevation / 2); + setResult(a->getElevation() / 2); } void ScummEngine_v2::o2_setActorElevation() { @@ -1161,8 +1161,7 @@ void ScummEngine_v2::o2_setActorElevation() { int elevation = (int8)getVarOrDirectByte(PARAM_2); Actor *a = derefActor(act, "o2_setActorElevation"); - a->elevation = elevation * 2; - a->needRedraw = true; + a->setElevation(elevation * 2); } void ScummEngine_v2::o2_animateActor() { |