mirror of
https://bitbucket.org/projectswg/cucore.git
synced 2026-08-04 04:16:00 -04:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user