mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Use 2D distance for visibility checks
This commit is contained in:
parent
a69bc59f1d
commit
df3ca15c3d
9 changed files with 88 additions and 24 deletions
|
|
@ -204,6 +204,7 @@ inline void LoadMapChunk(MPQFile & mf, chunk*_chunk)
|
|||
if(fourcc==0x4d435654) // MCVT
|
||||
{
|
||||
for (int j=0; j<17; ++j)
|
||||
{
|
||||
for (int i=0; i<((j%2)?8:9); ++i)
|
||||
{
|
||||
mf.read(&h,4);
|
||||
|
|
@ -226,6 +227,7 @@ inline void LoadMapChunk(MPQFile & mf, chunk*_chunk)
|
|||
if(z>zmax)zmax=z;
|
||||
//if(z<zmin)zmin=z;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if(fourcc==0x4d434e52) // MCNR
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue