diff options
author | maximius <none@none> | 2009-09-14 16:02:13 -0700 |
---|---|---|
committer | maximius <none@none> | 2009-09-14 16:02:13 -0700 |
commit | b37f9b1e55bd4b80597b8b8c3f461aad70ccc5c1 (patch) | |
tree | c637055aab5d8f0e733fc611fada42c43ad04d83 /src/game/Map.cpp | |
parent | 7b664c8c9fdda2b963f7883684a2f31d0f79551b (diff) |
*Merged MaNGOS [8458], [8475], [8476] by ogeraisi, thanks to all authors :)
--HG--
branch : trunk
Diffstat (limited to 'src/game/Map.cpp')
-rw-r--r-- | src/game/Map.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index 4c6dbba2e90..2fba8c37d2c 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -1870,7 +1870,8 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const // Makers' Overlook (ground and cave) else if (x > 5634.48f && x < 5774.53f && y < 3475.0f && z > 300.0f) { - if(y > 3380.26f || y > 3265.0f && z < 360.0f) areaflag = 2187; + if(y > 3380.26f || y > 3265.0f && z < 360.0f) + areaflag = 2187; } break; // The Makers' Perch (underground) @@ -1949,7 +1950,7 @@ void Map::GetZoneAndAreaIdByAreaFlag(uint32& zoneid, uint32& areaid, uint16 area bool Map::IsInWater(float x, float y, float pZ, float min_depth) const { // Check surface in x, y point for liquid - if (GridMap* gmap = const_cast<Map*>(this)->GetGrid(x, y)) + if (const_cast<Map*>(this)->GetGrid(x, y)) { LiquidData liquid_status; if (getLiquidStatus(x, y, pZ, MAP_ALL_LIQUIDS, &liquid_status)) @@ -1963,7 +1964,7 @@ bool Map::IsInWater(float x, float y, float pZ, float min_depth) const bool Map::IsUnderWater(float x, float y, float z) const { - if (GridMap* gmap = const_cast<Map*>(this)->GetGrid(x, y)) + if (const_cast<Map*>(this)->GetGrid(x, y)) { if (getLiquidStatus(x, y, z, MAP_LIQUID_TYPE_WATER|MAP_LIQUID_TYPE_OCEAN)&LIQUID_MAP_UNDER_WATER) return true; |