root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/world/KnownList.java

12391527
43
43
44
	// how far any visible object will see other visible object
44
	// how far any visible object will see other visible object
45
	private static final int						npcVisibilityDistance		= 80;
45
	private static final int						npcVisibilityDistance		= 80;
46
	
47
	// maxZvisibleDistance
48
	private static final int						maxZvisibleDistance 		= 400;
46
49
47
	/**
50
	/**
48
	 * Owner of this KnownList.
51
	 * Owner of this KnownList.
...
...
193
196
194
	private boolean checkObjectInRange(VisibleObject owner, VisibleObject newObject)
197
	private boolean checkObjectInRange(VisibleObject owner, VisibleObject newObject)
195
	{
198
	{
199
		//check if Z distance is greater than maxZvisibleDistance		
200
		if(Math.abs(owner.getZ() - newObject.getZ()) > maxZvisibleDistance)
201
			return false;				
202
		
196
		if(owner instanceof Player)
203
		if(owner instanceof Player)
197
			return MathUtil.isInRange(owner, newObject, playerVisibilityDistance);
204
			return MathUtil.isInRange(owner, newObject, playerVisibilityDistance);
198
		else
205
		else