aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/teenagent/actor.cpp8
-rw-r--r--engines/teenagent/scene.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/engines/teenagent/actor.cpp b/engines/teenagent/actor.cpp
index 332b399472..e9a29ff35d 100644
--- a/engines/teenagent/actor.cpp
+++ b/engines/teenagent/actor.cpp
@@ -32,7 +32,7 @@ Actor::Actor() : head_index(0) {}
//idle animation lists at dseg: 0x6540
Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &position, uint8 orientation, int delta_frame, bool render_head, uint zoom) {
- const uint8 frames_left_right[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
+ const uint8 frames_left_right[] = {0, 1, 2, 3, 4, 5, /* step */ 6, 7, 8, 9};
const uint8 frames_up[] = {18, 19, 20, 21, 22, 23, 24, 25, };
const uint8 frames_down[] = {10, 11, 12, 13, 14, 15, 16, 17, };
@@ -80,7 +80,7 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
}
if (index >= ARRAYSIZE(frames_left_right))
- index = 0;
+ index = 1;
s = frames + frames_left_right[index];
break;
case kActorUp:
@@ -92,7 +92,7 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
}
if (index >= ARRAYSIZE(frames_up))
- index = 0;
+ index = 1;
s = frames + frames_up[index];
break;
case kActorDown:
@@ -104,7 +104,7 @@ Common::Rect Actor::render(Graphics::Surface *surface, const Common::Point &posi
}
if (index >= ARRAYSIZE(frames_down))
- index = 0;
+ index = 1;
s = frames + frames_down[index];
break;
default:
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp
index 5cf7f03ccc..9487bbfaa6 100644
--- a/engines/teenagent/scene.cpp
+++ b/engines/teenagent/scene.cpp
@@ -672,7 +672,7 @@ bool Scene::render() {
uint zoom = lookupZoom(position.y);
if (!path.empty()) {
- int speed_x = ((teenagent.currentIndex() % 5) == 0? 16: 4) * zoom / 256, speed_y = 1 * zoom / 256;
+ int speed_x = ((teenagent.currentIndex() % 6) == 0? 8: 4) * zoom / 256, speed_y = 1 * zoom / 256;
if (speed_x == 0)
speed_x = 1;
if (speed_y == 0)