aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/script_v0.cpp
diff options
context:
space:
mode:
authorRobert Crossfield2012-01-24 23:23:19 +1100
committerTobias Gunkel2012-02-11 08:29:22 +0100
commit65fb1f9a09b3460eebaf7d033990fe9e778070f4 (patch)
tree69f3537196fcb679adfb301d24be960c215d3874 /engines/scumm/script_v0.cpp
parente3f9a09d49aaeb4657862ca734d20279e75c869f (diff)
downloadscummvm-rg350-65fb1f9a09b3460eebaf7d033990fe9e778070f4.tar.gz
scummvm-rg350-65fb1f9a09b3460eebaf7d033990fe9e778070f4.tar.bz2
scummvm-rg350-65fb1f9a09b3460eebaf7d033990fe9e778070f4.zip
SCUMM: Fix the animation system, rename the Limb Frame Repeat variable
Diffstat (limited to 'engines/scumm/script_v0.cpp')
-rw-r--r--engines/scumm/script_v0.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/scumm/script_v0.cpp b/engines/scumm/script_v0.cpp
index 4081123e13..0bdefd660b 100644
--- a/engines/scumm/script_v0.cpp
+++ b/engines/scumm/script_v0.cpp
@@ -27,6 +27,7 @@
#include "scumm/resource.h"
#include "scumm/scumm_v0.h"
#include "scumm/verbs.h"
+#include "scumm/util.h"
namespace Scumm {
@@ -601,8 +602,7 @@ void ScummEngine_v0::o_loadRoomWithEgo() {
x = r.x;
y = r.y;
a->putActor(x, y, _currentRoom);
- a->setDirection(dir + 180);
-
+
camera._dest.x = camera._cur.x = a->getPos().x;
setCameraAt(a->getPos().x, a->getPos().y);
setCameraFollows(a);
@@ -674,13 +674,13 @@ void ScummEngine_v0::o_lights() {
void ScummEngine_v0::o_animateActor() {
int act = getVarOrDirectByte(PARAM_1);
int anim = getVarOrDirectByte(PARAM_2);
- int8 unk = (int8) fetchScriptByte();
+ int8 animFrameRepeat = (int8) fetchScriptByte();
- debug(0,"o_animateActor: unk %d", unk);
+ debug(0,"o_animateActor: animFrameRepeat %d", animFrameRepeat);
ActorC64 *a = (ActorC64*) derefActor(act, "o_animateActor");
- a->_byte_FDE8 = unk;
+ a->_AnimFrameRepeat = animFrameRepeat;
switch( anim ) {