mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[10727] Map system re-engineered. Special thanks to Blueboy for tests.
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
f5e40a5fda
commit
f67d89f109
43 changed files with 1254 additions and 1128 deletions
|
|
@ -3712,12 +3712,12 @@ bool Unit::isInAccessablePlaceFor(Creature const* c) const
|
|||
|
||||
bool Unit::IsInWater() const
|
||||
{
|
||||
return GetBaseMap()->IsInWater(GetPositionX(),GetPositionY(), GetPositionZ());
|
||||
return GetTerrain()->IsInWater(GetPositionX(),GetPositionY(), GetPositionZ());
|
||||
}
|
||||
|
||||
bool Unit::IsUnderWater() const
|
||||
{
|
||||
return GetBaseMap()->IsUnderWater(GetPositionX(),GetPositionY(),GetPositionZ());
|
||||
return GetTerrain()->IsUnderWater(GetPositionX(),GetPositionY(),GetPositionZ());
|
||||
}
|
||||
|
||||
void Unit::DeMorph()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue