From 5733c90ee0a6bd0f9be79558f9ec592199d9f90a Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Fri, 8 Apr 2011 18:49:11 +0200 Subject: [PATCH] Increase by hand the turn rate used by walkForward() and update(). This makes the turn speed match with the original one. I'm not sure this is the right way to go though, it needs testing. --- engines/grim/actor.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engines/grim/actor.cpp b/engines/grim/actor.cpp index 616d22c7ed0..b7461afbb28 100644 --- a/engines/grim/actor.cpp +++ b/engines/grim/actor.cpp @@ -616,7 +616,7 @@ void Actor::walkForward() { return; ei.angleWithEdge += (float)0.1; - float turnAmt = g_grim->perSecond(_turnRate); + float turnAmt = g_grim->perSecond(_turnRate) * 5.; if (turnAmt > ei.angleWithEdge) turnAmt = ei.angleWithEdge; setYaw(_yaw + turnAmt * turnDir); @@ -962,7 +962,7 @@ void Actor::update() { } if (_turning) { - float turnAmt = g_grim->perSecond(_turnRate); + float turnAmt = g_grim->perSecond(_turnRate) * 5.f; float dyaw = _destYaw - _yaw; while (dyaw > 180) dyaw -= 360; @@ -979,7 +979,7 @@ void Actor::update() { else if (dyaw > 0) setYaw(_yaw + turnAmt); else - setYaw(_yaw -= turnAmt); + setYaw(_yaw - turnAmt); _currTurnDir = (dyaw > 0 ? 1 : -1); }