mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-18 07:53:12 +00:00
Corrected actor walk speed in IHNM
svn-id: r27003
This commit is contained in:
parent
c87cf11c76
commit
438ba78387
@ -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);
|
||||
|
@ -50,6 +50,8 @@ class HitZone;
|
||||
|
||||
#define ACTOR_LMULT 4
|
||||
|
||||
#define ACTOR_SPEED 72
|
||||
|
||||
#define ACTOR_CLIMB_SPEED 8
|
||||
|
||||
#define ACTOR_COLLISION_WIDTH 32
|
||||
|
Loading…
x
Reference in New Issue
Block a user