Преглед на файлове

fix for movement loop mobs staying stationary (need a default base speed for entities)

Image преди 4 години
родител
ревизия
8a6302f7ce
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      EQ2/source/WorldServer/Entity.h

+ 2 - 2
EQ2/source/WorldServer/Entity.h

@@ -742,8 +742,8 @@ public:
 
 	float GetSpeed();
 	float GetAirSpeed();
-	float GetBaseSpeed() { return base_speed; }
-void SetSpeed(float val, bool override_ = false) { if ((base_speed == 0.0f && val > 0.0f) || override_) base_speed = val;  speed = val; }
+	float GetBaseSpeed() { if (base_speed == 0.0f) base_speed = 2.0f; return base_speed; }
+	void SetSpeed(float val, bool override_ = false) { if ((base_speed == 0.0f && val > 0.0f) || override_) base_speed = val;  speed = val; }
 	void SetSpeedMultiplier(float val) { speed_multiplier = val; }
 
 	void SetThreatTransfer(ThreatTransfer* transfer) { m_threatTransfer = transfer; }