Core/Scripting: Allow the use of WorldMapScript for maps that are not continents (aka, all maps)

Closes #171
Signed-off-by: Subv <[email protected]>
This commit is contained in:
Subv
2012-04-07 11:59:01 -05:00
parent ae0a6cde21
commit ba3f25c143
2 changed files with 9 additions and 8 deletions
@@ -1292,6 +1292,7 @@ struct MapEntry
bool IsBattleground() const { return map_type == MAP_BATTLEGROUND; }
bool IsBattleArena() const { return map_type == MAP_ARENA; }
bool IsBattlegroundOrArena() const { return map_type == MAP_BATTLEGROUND || map_type == MAP_ARENA; }
bool IsWorldMap() const { return map_type == MAP_COMMON; }
bool GetEntrancePos(int32 &mapid, float &x, float &y) const
{