Corrected actor walk speed in IHNM

svn-id: r27003
This commit is contained in:
Filippos Karapetis 2007-05-29 12:55:17 +00:00
parent c87cf11c76
commit 438ba78387
2 changed files with 7 additions and 3 deletions

View File

@ -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);

View File

@ -50,6 +50,8 @@ class HitZone;
#define ACTOR_LMULT 4
#define ACTOR_SPEED 72
#define ACTOR_CLIMB_SPEED 8
#define ACTOR_COLLISION_WIDTH 32