Fix area flag problem, by Spp: Dalaran. Closes #509

--HG--
branch : trunk
This commit is contained in:
tartalo
2009-12-01 11:11:41 +01:00
parent 23671382f0
commit b7934fc245

View File

@@ -1854,6 +1854,7 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const
if(z > 350.0f) areaflag = 1950; break;
// Dalaran
case 2492: // Forlorn Woods (Crystalsong Forest)
case 2371: // Valley of Echoes (Icecrown Glacier)
if (x > 5568.0f && x < 6116.0f && y > 282.0f && y < 982.0f && z > 563.0f)
{
// Krasus' Landing (Dalaran), fast check
@@ -1862,7 +1863,7 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const
// Krasus' Landing (Dalaran), with open east side
if (y < 449.33f || (x-5813.9f)*(x-5813.9f)+(y-449.33f)*(y-449.33f) < 1864.0f)
{
areaflag = 2533; // Note: also 2633, possible one flight allowed and other not allowed case
areaflag = 2531; // Note: also 2633, possible one flight allowed and other not allowed case
break;
}
}