aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-28 16:17:01 -0600
committermegamage <none@none>2009-03-28 16:17:01 -0600
commita9864927186687a76b4ce969f5afb6058935f5f5 (patch)
tree2d596f6f0e98ea78040ab5e36f4bcc5e3414be84 /src
parentc1c395dfb68d052428d4466beedd1d56733f21c7 (diff)
[7556] Implement hack way check for cave subzone 4223 detection. Author: VladimirMangos
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Map.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp
index 13110fe8ca2..1b2236b989e 100644
--- a/src/game/Map.cpp
+++ b/src/game/Map.cpp
@@ -1733,6 +1733,8 @@ float Map::GetVmapHeight(float x, float y, float z, bool useMaps) const
return vmapHeight;
}
+#include "World.h"
+
uint16 Map::GetAreaFlag(float x, float y, float z) const
{
uint16 areaflag;
@@ -1760,7 +1762,13 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const
case 1593:
case 2484:
case 2492:
- if( (x < 6116 && x > 5568) && (y < 982 && y > 282) && z > 563.0f) areaflag = 2153; break;
+ if (x > 5568.0f && x < 6116.0f && y > 282.0f && y < 982.0f && z > 563.0f) areaflag = 2153; break;
+ // Maw of Neltharion (cave)
+ case 164: // Dragonblight
+ case 1797: // Obsidian Dragonshrine (Dragonblight)
+ case 1827: // Wintergrasp
+ case 2591: // The Cauldron of Flames (Wintergrasp)
+ if (x > 4364.0f && x < 4632.0f && y > 1545.0f && y < 1886.0f && z < 200.0f) areaflag = 1853; break;
}
return areaflag;