Changed CmdStartScene to use galacticTime

This should fix the time of day's being incorrect when using multiple
clients
This commit is contained in:
Waverunner
2014-05-10 17:13:06 -04:00
parent b5344eab07
commit d38bc9eb29
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -912,7 +912,7 @@ public class SimulationService implements INetworkDispatch {
HeartBeatMessage heartBeat = new HeartBeatMessage();
session.write(heartBeat.serialize());
CmdStartScene startScene = new CmdStartScene((byte) 0, object.getObjectID(), object.getPlanet().getPath(), object.getTemplate(), newPos.x, newPos.y, newPos.z, System.currentTimeMillis() / 1000, object.getRadians());
CmdStartScene startScene = new CmdStartScene((byte) 0, object.getObjectID(), object.getPlanet().getPath(), object.getTemplate(), newPos.x, newPos.y, newPos.z, core.getGalacticTime() / 1000, object.getRadians());
session.write(startScene.serialize());
handleZoneIn(client);
+2 -2
View File
@@ -836,9 +836,9 @@ public class ObjectService implements INetworkDispatch {
core.buffService.clearBuffs(creature);
CmdStartScene startScene = new CmdStartScene((byte) 0, objectId, creature.getPlanet().getPath(), creature.getTemplate(), position.x, position.y, position.z, core.getGalacticTime(), 0);
CmdStartScene startScene = new CmdStartScene((byte) 0, objectId, creature.getPlanet().getPath(), creature.getTemplate(), position.x, position.y, position.z, core.getGalacticTime() / 1000, 0);
session.write(startScene.serialize());
ChatServerStatus chatServerStatus = new ChatServerStatus();
client.getSession().write(chatServerStatus.serialize());