Explorar o código

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 %!s(int64=11) %!d(string=hai) anos
pai
achega
a7bccb84dc
Modificáronse 1 ficheiros con 6 adicións e 1 borrados
  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)