diff options
-rw-r--r-- | engines/teenagent/scene.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp index 9487bbfaa6..7cc009bf78 100644 --- a/engines/teenagent/scene.cpp +++ b/engines/teenagent/scene.cpp @@ -672,7 +672,20 @@ bool Scene::render() { uint zoom = lookupZoom(position.y); if (!path.empty()) { - int speed_x = ((teenagent.currentIndex() % 6) == 0? 8: 4) * zoom / 256, speed_y = 1 * zoom / 256; + int speed_x; + switch(teenagent.currentIndex()) { + case 6: + speed_x = 10; + break; + case 8: + speed_x = 1; + break; + default: + speed_x = 6; + break; + } + speed_x = speed_x * zoom / 256; + int speed_y = 1 * zoom / 256; if (speed_x == 0) speed_x = 1; if (speed_y == 0) |