FIXED Waypoints defaulting to (0,0,0)

ADDED Comment noting a likely bug in the Engine code
This commit is contained in:
wallaceg09
2014-08-13 14:10:10 -05:00
parent a303a7fbe2
commit 626c8a22cf
2 changed files with 6 additions and 1 deletions
@@ -39,6 +39,11 @@ public class IntangibleObject extends SWGObject implements Serializable {
private transient IntangibleMessageBuilder messageBuilder;
/*
* FIXME: [MINOR] The engine code doesn't appear to use the position passed to it (at least for waypoints). When passed a not-null position,
* the resulting Object comes back with a null position. The engine code in question is: engine.resource.objects.SWGObject
* The bug seems to be non-fatal but appears like it might cause a memory leak.
*/
public IntangibleObject(long objectID, Planet planet, Point3D position, Quaternion orientation, String Template) {
super(objectID, planet, position, orientation, Template);
}
@@ -43,7 +43,7 @@ public class WaypointObject extends IntangibleObject implements IDelta, Serializ
public static final byte BLUE = 1, GREEN = 2, ORANGE = 3, YELLOW = 4, PURPLE = 5, WHITE = 6, MULTICOLOR = 7;
public WaypointObject(long objectID, Planet planet, Point3D position) {
super(objectID, planet, new Point3D(0, 0, 0), new Quaternion(0, 0, 0, 1), "object/waypoint/shared_waypoint.iff");
super(objectID, planet, position, new Quaternion(0, 0, 0, 1), "object/waypoint/shared_waypoint.iff");
}
public WaypointObject() {