Implemented CORE-253 'Redo awareness' Should no longer have to worry about it as a developer, it's all automagic

This commit is contained in:
Obique PSWG
2015-10-06 10:36:00 -05:00
parent a30784a907
commit e25a094b29
12 changed files with 163 additions and 85 deletions
+2 -4
View File
@@ -111,16 +111,14 @@ public class StaticService extends Service {
private SWGObject createObject(String iff, SWGObject parent, double x, double y, double z, double heading) {
Location loc = new Location(x, y, z, parent.getTerrain());
loc.setHeading(heading);
SWGObject obj = objectManager.createObject(iff, loc, false, false);
parent.addObject(obj);
return obj;
return objectManager.createObject(parent, iff, loc, false);
}
private SWGObject createObject(String iff, Location parentLoc, double x, double y, double z, double heading) {
Location loc = new Location(x, y, z, parentLoc.getTerrain());
loc.setHeading(heading);
loc.translateLocation(parentLoc);
return objectManager.createObject(iff, loc, true, false);
return objectManager.createObject(iff, loc, false);
}
}