Core/Phases:

- fixed packet structure, thanks to Shauren for the notice
- fixed .mod phase command
- implemented world map area swaps for swapped terrain
This commit is contained in:
Rat committed 2014-10-30 23:08:23 +01:00
1 parent d77bb02e88
commit 2583661703
5 files changed
+26 -19

No files matched your search

@@ -2940,15 +2940,4 @@ void WorldObject::RebuildTerrainSwaps()
_terrainSwaps.insert(swap);
}
}
// Now insert the map terrain swaps
std::list<uint32>& mapSwaps = sObjectMgr->GetMapTerrainSwaps(GetMapId());
for (auto swap : mapSwaps)
{
conditions = sConditionMgr->GetConditionsForNotGroupedEntry(CONDITION_SOURCE_TYPE_TERRAIN_SWAP, swap);
if (sConditionMgr->IsObjectMeetToConditions(this, conditions))
_terrainSwaps.insert(swap);
}
}