Преглед на файлове

BETA: Fixed "Can not see target." when geodata disabled and source and destination position have a distance of 0.
* Patch by: FBIagent
* Reported by: lion

Rumen Nikiforov преди 11 години
родител
ревизия
a7bccb84dc
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      L2J_Server_BETA/java/com/l2jserver/gameserver/GeoData.java

+ 6 - 1
L2J_Server_BETA/java/com/l2jserver/gameserver/GeoData.java

@@ -277,7 +277,12 @@ public class GeoData implements IGeoDriver
 		double fullDist = Util.calculateDistance(geoX, geoY, 0, tGeoX, tGeoY, 0, false, false);
 		if (!(fullDist > 0.0))
 		{
-			return z == tz;
+			if (hasGeoPos(tGeoX, tGeoY))
+			{
+				return z == tz;
+			}
+			
+			return true;
 		}
 		
 		if (tz > z)