aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Menshakov2010-01-03 01:52:36 +0000
committerVladimir Menshakov2010-01-03 01:52:36 +0000
commit0b92bf472a7e67dfa9069d2564bfdb199c957553 (patch)
tree6adecd6ad6ddde5df5666b862845f7cb91f888f9
parentce40ad325ca6968c33e0d4dd9652311810535497 (diff)
downloadscummvm-rg350-0b92bf472a7e67dfa9069d2564bfdb199c957553.tar.gz
scummvm-rg350-0b92bf472a7e67dfa9069d2564bfdb199c957553.tar.bz2
scummvm-rg350-0b92bf472a7e67dfa9069d2564bfdb199c957553.zip
fixed zero speed issue
svn-id: r46913
-rw-r--r--engines/teenagent/scene.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/teenagent/scene.cpp b/engines/teenagent/scene.cpp
index f48c72a919..48840bb06f 100644
--- a/engines/teenagent/scene.cpp
+++ b/engines/teenagent/scene.cpp
@@ -673,6 +673,11 @@ bool Scene::render() {
if (!path.empty()) {
int speed_x = 4 * zoom / 256, speed_y = 1 * zoom / 256;
+ if (speed_x == 0)
+ speed_x = 1;
+ if (speed_y == 0)
+ speed_y = 1;
+
if ((teenagent.currentIndex() % 5) == 0)
speed_x *= 4;