mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22:37:02 +00:00
[9304] Propertly detect underground area 4425
This commit is contained in:
parent
d7d4c2da9f
commit
07e699b8d3
2 changed files with 25 additions and 1 deletions
|
|
@ -1891,6 +1891,30 @@ uint16 Map::GetAreaFlag(float x, float y, float z) const
|
||||||
if ((x-3546.87f)*(x-3546.87f)+(y-272.71f)*(y-272.71f) < 19600.0f) areaflag = 1791;
|
if ((x-3546.87f)*(x-3546.87f)+(y-272.71f)*(y-272.71f) < 19600.0f) areaflag = 1791;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
// The Forlorn Mine (The Storm Peaks)
|
||||||
|
case 166: // The Storm Peaks
|
||||||
|
case 2207: // Brunnhildar Village (The Storm Peaks)
|
||||||
|
case 2209: // Sifreldar Village (The Storm Peaks)
|
||||||
|
case 2227: // The Foot Steppes (The Storm Peaks)
|
||||||
|
// fast big box
|
||||||
|
if (x > 6812.0f && x < 7049.5f && y > -1474.5f && y < -1162.5f && z < 866.15f)
|
||||||
|
{
|
||||||
|
// east, avoid ground east-south corner wrong detection
|
||||||
|
if (x > 6925.0f && y > -1474.5f && y < -1290.0f)
|
||||||
|
areaflag = 2213;
|
||||||
|
// east middle, wide part
|
||||||
|
else if (x > 6812.0f && y > -1400.0f && y < -1290.0f)
|
||||||
|
areaflag = 2213;
|
||||||
|
// west middle, avoid ground west-south corner wrong detection
|
||||||
|
else if (x > 6833.0f && y > -1474.5f && y < -1233.0f)
|
||||||
|
areaflag = 2213;
|
||||||
|
// west, avoid ground west-south corner wrong detection
|
||||||
|
else if (x > 6885.0f && y > -1474.5f && y < -1162.5f)
|
||||||
|
areaflag = 2213;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return areaflag;
|
return areaflag;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9303"
|
#define REVISION_NR "9304"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue