Temp Fix to Static Spawns

Temporary fix for the handling of static spawned objects.
This commit is contained in:
Levarrishawk
2014-04-29 09:27:57 -04:00
parent 3933fe8a65
commit bfa32b533f
4 changed files with 426 additions and 424 deletions
+6 -2
View File
@@ -69,7 +69,11 @@ public class StaticService implements INetworkDispatch {
return spawnObject(template, planetName, cellId, x, y, z, qW, 0, qY, 0);
}
public SWGObject spawnObject(String template, String planetName, long cellId, float x, float y, float z, float qW, float qX, float qY, float qZ) {
public SWGObject spawnObject(String template, long objectId, String planetName, long cellId, float x, float y, float z, float qY, float qW) {
return spawnObject(template, objectId, planetName, cellId, x, y, z, qW, 0, qY, 0);
}
public SWGObject spawnObject(String template, long objectId, String planetName, long cellId, float x, float y, float z, float qW, float qX, float qY, float qZ) {
Planet planet = core.terrainService.getPlanetByName(planetName);
if (planet == null) {
@@ -85,7 +89,7 @@ public class StaticService implements INetworkDispatch {
cellNumber = ((BuildingObject) container.getContainer()).getCellNumberByObjectId(cellId);
}
long objectId = core.objectService.getDOId(planetName, template, 0, cellId, cellNumber, x, y, z);
//long objectId = core.objectService.getDOId(planetName, template, 0, cellId, cellNumber, x, y, z); TODO: Make this work right!
SWGObject object;