Less retarded algorithm for ObjectAwareness.isInAwareness()

This commit is contained in:
Mads Boddum
2016-05-04 16:35:59 +02:00
parent 22eec47c01
commit 5e8c19583f
+3 -8
View File
@@ -242,14 +242,9 @@ public class ObjectAwareness extends Service {
}
private boolean isInAwareness(SWGObject object) {
if(object.getParent() == null && object instanceof TangibleObject) {
// We don't add logged out players to awareness when objects are being loaded from ODB.
if(object instanceof CreatureObject && ((CreatureObject) object).isLoggedOutPlayer()) {
return false;
}
return true;
}
return false;
if (object instanceof CreatureObject && ((CreatureObject) object).isLoggedOutPlayer())
return false;
return object.getParent() == null && object instanceof TangibleObject;
}
private double invertNormalizedValue(double x) {