Parcourir la source

Update mob_movement_manager.cpp

Additional Fix #88
Image il y a 4 ans
Parent
commit
1b7baa6dc6
1 fichiers modifiés avec 1 ajouts et 13 suppressions
  1. 1 13
      EQ2/source/WorldServer/Zone/mob_movement_manager.cpp

+ 1 - 13
EQ2/source/WorldServer/Zone/mob_movement_manager.cpp

@@ -136,19 +136,7 @@ public:
 		int    current_speed = 0;
 
 		if (m_move_to_mode == MovementRunning) {
-			if (mob->IsFeared()) {
-				current_speed = mob->GetBaseSpeed();
-			}
-			else {
-				//runback overrides
-				if (mob->GetSpeed() > mob->GetMaxSpeed())
-					current_speed = mob->GetSpeed();
-				else
-					current_speed = mob->GetMaxSpeed();
-			}
-		}
-		else {
-			current_speed = mob->GetBaseSpeed();
+			current_speed = ((Spawn*)mob)->GetSpeed();
 		}
 
 		if (!m_started) {