Temp quadtree remove() fix

This commit is contained in:
Treeku
2014-03-19 20:37:37 +00:00
parent 9a100ee49f
commit 69832cc30d
+4
View File
@@ -263,6 +263,10 @@ public class SimulationService implements INetworkDispatch {
}
public boolean remove(SWGObject object, float x, float y, boolean notifyObservers) {
if (object == null || !object.isInQuadtree()) {
return false;
}
boolean success = quadTrees.get(object.getPlanet().getName()).remove(x, y, object);
object.setIsInQuadtree(success);
if(success && notifyObservers) {