aboutsummaryrefslogtreecommitdiff
path: root/engines/saga
diff options
context:
space:
mode:
authorFilippos Karapetis2007-05-29 12:55:17 +0000
committerFilippos Karapetis2007-05-29 12:55:17 +0000
commit438ba78387fdffa63b2f1724a55c2a69a12ad4bc (patch)
treeb4bc3412918ee3718cdfc0ef43bccce7e9756f2e /engines/saga
parentc87cf11c76548b953fc6b4ad13e4a69925c07704 (diff)
downloadscummvm-rg350-438ba78387fdffa63b2f1724a55c2a69a12ad4bc.tar.gz
scummvm-rg350-438ba78387fdffa63b2f1724a55c2a69a12ad4bc.tar.bz2
scummvm-rg350-438ba78387fdffa63b2f1724a55c2a69a12ad4bc.zip
Corrected actor walk speed in IHNM
svn-id: r27003
Diffstat (limited to 'engines/saga')
-rw-r--r--engines/saga/actor.cpp8
-rw-r--r--engines/saga/actor.h2
2 files changed, 7 insertions, 3 deletions
diff --git a/engines/saga/actor.cpp b/engines/saga/actor.cpp
index e92eb1307c..4c81bede8b 100644
--- a/engines/saga/actor.cpp
+++ b/engines/saga/actor.cpp
@@ -1409,11 +1409,13 @@ void Actor::handleActions(int msec, bool setup) {
if(_vm->getGameType() == GType_ITE)
speed = (ACTOR_LMULT * 2 * actor->_screenScale + 63) / 256;
else
- speed = (72 * actor->_screenScale + 128) / 256;
+ speed = (ACTOR_SPEED * actor->_screenScale + 128) >> 8;
- if (speed < 1) {
+ if (speed < 1)
speed = 1;
- }
+
+ if(_vm->getGameType() == GType_IHNM)
+ speed = speed / 2;
if ((actor->_actionDirection == kDirUp) || (actor->_actionDirection == kDirDown)) {
addDelta.y = clamp(-speed, delta.y, speed);
diff --git a/engines/saga/actor.h b/engines/saga/actor.h
index d6ca4c4f41..bc18259f70 100644
--- a/engines/saga/actor.h
+++ b/engines/saga/actor.h
@@ -50,6 +50,8 @@ class HitZone;
#define ACTOR_LMULT 4
+#define ACTOR_SPEED 72
+
#define ACTOR_CLIMB_SPEED 8
#define ACTOR_COLLISION_WIDTH 32