Core/Maps: ported all master branch changes for map extractor including height map extraction

* new maps, and mmaps are required
This commit is contained in:
Ovahlord committed 2019-02-25 07:37:47 +01:00
1 parent c10573f1d0
commit fe7bcac696
14 files changed
+597 -699

No files matched your search

+1 -2
View File
@@ -429,8 +429,7 @@ void WorldSession::HandleMovementOpcodes(WorldPacket& recvPacket)
plrMover->UpdateFallInformationIfNeed(movementInfo, opcode);
AreaTableEntry const* zone = sAreaTableStore.LookupEntry(plrMover->GetAreaId());
float depth = zone ? zone->MinElevation : -500.0f;
if (movementInfo.pos.GetPositionZ() < depth)
if (movementInfo.pos.GetPositionZ() < plrMover->GetMap()->GetMinHeight(movementInfo.pos.GetPositionX(), movementInfo.pos.GetPositionY()))
{
if (!(plrMover->GetBattleground() && plrMover->GetBattleground()->HandlePlayerUnderMap(_player)))
{