mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 10:37:06 +00:00
Weather system fixed
Fixed by implementing the cmangos Cata commit [c13018] Improve Weather handling and comparing their code with the current system. Thanks,. cmangos :-)
This commit is contained in:
parent
3b52b46199
commit
6db0ba8ae9
12 changed files with 55 additions and 93 deletions
|
|
@ -536,9 +536,9 @@ class WorldObject : public Object
|
|||
|
||||
bool IsPositionValid() const;
|
||||
void UpdateGroundPositionZ(float x, float y, float& z) const;
|
||||
void UpdateAllowedPositionZ(float x, float y, float& z, Map* atMap = nullptr) const;
|
||||
void UpdateAllowedPositionZ(float x, float y, float& z, Map* atMap = nullptr) const;
|
||||
|
||||
void GetRandomPoint(float x, float y, float z, float distance, float& rand_x, float& rand_y, float& rand_z) const;
|
||||
void GetRandomPoint(float x, float y, float z, float distance, float& rand_x, float& rand_y, float& rand_z, float minDist = 0.0f, float const* ori = nullptr) const;
|
||||
|
||||
uint32 GetMapId() const { return m_mapId; }
|
||||
uint32 GetInstanceId() const { return m_InstanceId; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue