diff --git a/assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java b/assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java index 0b8a472d4b404ef3ef2b7fe6fab055b9b38968f4..14692b8b667f683442ae31da225e82c661e28a37 100644 --- a/assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java +++ b/assignments/src/MV3500Cohort2020JulySeptember/homework4/Britt/EspduSender.java @@ -74,7 +74,6 @@ public class EspduSender int port = DEFAULT_MULTICAST_PORT; MulticastSocket socket = null; // must be initialized to avoid later error, even if null; EntityStatePdu espdu = new EntityStatePdu(); - DisTime disTime = new DisTime(); // ICBM coordinates for my office double latitude = 36.639222; @@ -237,7 +236,7 @@ public class EspduSender // update the timestamp on ALL packets sent. // An alterative approach: actually follow the standard. It's a crazy concept, // but it might just work. - int timestamp = disTime.getDisAbsoluteTimestamp(); + int timestamp = DisTime.getCurrentDisAbsoluteTimestamp(); espdu.setTimestamp(timestamp); // Set the position of the entity in the world. DIS uses a cartesian