More work on cities

This commit is contained in:
Light2
2014-06-11 18:47:19 +02:00
parent 165adda20d
commit 2b885b7a0a
6 changed files with 156 additions and 83 deletions
+5
View File
@@ -527,6 +527,11 @@ public class ObjectService implements INetworkDispatch {
} else {
core.simulationService.remove(object, object.getWorldPosition().x, object.getWorldPosition().z, true);
}
@SuppressWarnings("unchecked") Vector<SWGObject> childObjects = (Vector<SWGObject>) object.getAttachment("childObjects");
for(SWGObject child : childObjects) {
if(child.getParentId() != 0)
destroyObject(child);
}
}