Просмотр исходного кода

Support for faster than normal runspeed when set for runback

Image 4 лет назад
Родитель
Сommit
62c2053c76
1 измененных файлов с 10 добавлено и 2 удалено
  1. 10 2
      EQ2/source/WorldServer/Zone/mob_movement_manager.cpp

+ 10 - 2
EQ2/source/WorldServer/Zone/mob_movement_manager.cpp

@@ -140,7 +140,11 @@ public:
 				current_speed = mob->GetBaseSpeed();
 			}
 			else {
-				current_speed = mob->GetMaxSpeed();
+				//runback overrides
+				if (mob->GetSpeed() > mob->GetMaxSpeed())
+					current_speed = mob->GetSpeed();
+				else
+					current_speed = mob->GetMaxSpeed();
 			}
 		}
 		else {
@@ -280,7 +284,11 @@ public:
 				current_speed = mob->GetBaseSpeed();
 			}
 			else {
-				current_speed = mob->GetMaxSpeed();
+				//runback overrides
+				if (mob->GetSpeed() > mob->GetMaxSpeed())
+					current_speed = mob->GetSpeed();
+				else
+					current_speed = mob->GetMaxSpeed();
 			}
 		}
 		else {