[Scummvm-cvs-logs] SF.net SVN: scummvm: [27003] scummvm/trunk/engines/saga
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Tue May 29 14:55:18 CEST 2007
Revision: 27003
http://scummvm.svn.sourceforge.net/scummvm/?rev=27003&view=rev
Author: thebluegr
Date: 2007-05-29 05:55:17 -0700 (Tue, 29 May 2007)
Log Message:
-----------
Corrected actor walk speed in IHNM
Modified Paths:
--------------
scummvm/trunk/engines/saga/actor.cpp
scummvm/trunk/engines/saga/actor.h
Modified: scummvm/trunk/engines/saga/actor.cpp
===================================================================
--- scummvm/trunk/engines/saga/actor.cpp 2007-05-28 23:14:50 UTC (rev 27002)
+++ scummvm/trunk/engines/saga/actor.cpp 2007-05-29 12:55:17 UTC (rev 27003)
@@ -1409,12 +1409,14 @@
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);
if (addDelta.y == delta.y) {
Modified: scummvm/trunk/engines/saga/actor.h
===================================================================
--- scummvm/trunk/engines/saga/actor.h 2007-05-28 23:14:50 UTC (rev 27002)
+++ scummvm/trunk/engines/saga/actor.h 2007-05-29 12:55:17 UTC (rev 27003)
@@ -50,6 +50,8 @@
#define ACTOR_LMULT 4
+#define ACTOR_SPEED 72
+
#define ACTOR_CLIMB_SPEED 8
#define ACTOR_COLLISION_WIDTH 32
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list