cleanup: Fixes bugs and cleans up code (#660)
This commit is contained in:
parent
1de0b656a9
commit
679e8100f4
99 changed files with 160 additions and 346 deletions
|
|
@ -456,8 +456,7 @@ namespace Server.Engines.ConPVP
|
|||
var point = m_Path[i];
|
||||
|
||||
var landTile = Map.Tiles.GetLandTile(point.X, point.Y);
|
||||
int landZ = 0, landAvg = 0, landTop = 0;
|
||||
Map.GetAverageZ(point.X, point.Y, ref landZ, ref landAvg, ref landTop);
|
||||
Map.GetAverageZ(point.X, point.Y, out var landZ, out _, out var landTop);
|
||||
|
||||
if (landZ <= point.Z && landTop >= point.Z && !landTile.Ignored)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue