EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   COMMITTED: MobAI Typo Fix (https://www.eqemulator.org/forums/showthread.php?t=30584)

joligario 02-14-2010 11:38 AM

COMMITTED: MobAI Typo Fix
 
Minor fix for determining run speed vs. walk speed.

Code:

Index: MobAI.cpp
===================================================================
--- MobAI.cpp        (revision 1245)
+++ MobAI.cpp        (working copy)
@@ -1020,7 +1020,7 @@
                        float dist = DistNoRoot(*owner);
                        if (dist >= 100)
                        {
-                                float speed = dist >= 25 ? GetRunspeed() : GetWalkspeed();
+                                float speed = dist >= 225 ? GetRunspeed() : GetWalkspeed();
                                animation = 21 * speed;
                                CalculateNewPosition2(owner->GetX(), owner->GetY(), owner->GetZ(), speed);
                        }



All times are GMT -4. The time now is 06:45 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.