mirror of
https://github.com/EQEmu/Server.git
synced 2026-12-04 15:22:18 +00:00
[Fix] Boats should never get FixZ'd (#2246)
* Boats should never get FixZ'd * Use member variable to avoid repetitive checks * Resolve comments from review * Fix return type
This commit is contained in:
1 parent
15113f4056
commit
3936b2b882
5 files changed
+13
-4
No files matched your search
+4
-1
@@ -630,7 +630,9 @@ public:
|
||||
inline const float GetSize() const { return size; }
|
||||
inline const float GetBaseSize() const { return base_size; }
|
||||
inline const GravityBehavior GetFlyMode() const { return flymode; }
|
||||
bool IsBoat() const;
|
||||
bool IsBoat() const; // Checks races - used on mob instantiation
|
||||
bool GetIsBoat() const { return is_boat; } // Set on instantiation for speed
|
||||
void SetIsBoat(bool boat) { is_boat = boat; }
|
||||
bool IsControllableBoat() const;
|
||||
inline const bool AlwaysAggro() const { return always_aggro; }
|
||||
|
||||
@@ -1664,6 +1666,7 @@ protected:
|
||||
bool endur_upkeep;
|
||||
bool degenerating_effects; // true if we have a buff that needs to be recalced every tick
|
||||
bool spawned_in_water;
|
||||
bool is_boat;
|
||||
|
||||
CombatRecord combat_record{};
|
||||
|
||||
|
||||
Reference in new issue
Block a user