Fixed buildouts besides buildings and their children not being added to quadtree

Fixed some bugs with retrieving quest items
Changed quest service's next task method to temporarily not auto-advance
to next quest if it's defined - will be re-enabled when most of task
types are done
Changed buildout objects to load server templates (unsure why they were
not loaded before)
Fixed SpawnPoint odb save error
This commit is contained in:
Waverunner
2014-08-15 18:04:47 -04:00
parent ffbe209207
commit 5cf7367e61
10 changed files with 39 additions and 24 deletions
+5 -1
View File
@@ -185,11 +185,15 @@ public class SimulationService implements INetworkDispatch {
}
public void insertSnapShotObjects() {
System.out.println("Inserting snapshot buildings...");
List<SWGObject> objectList = new ArrayList<SWGObject>(core.objectService.getObjectList().values());
for(SWGObject obj : objectList) {
if(obj.getParentId() == 0 && /*(*/obj.isInSnapshot() /*|| obj.getAttachment("isBuildout") != null)*/)
// Buildings are inserted via another method from the odb, so no need to load them into the quadtree as well
if(obj.getParentId() == 0 && (obj.isInSnapshot() || obj.getAttachment("isBuildout") != null) && obj.getAttachment("buildoutBuilding") == null) {
add(obj, obj.getPosition().x, obj.getPosition().z);
}
}
System.out.println("Snapshots inserted!");
}
public void insertPersistentBuildings() {