How to set Celestia's time in C++
Posted: 20.09.2010, 13:51
I've modified Celestia to a network time synchonizing program
the function to set time is appCore->getSimulation()->setTime(curTime);
the time data(curTime) is sent from the network server,so it can share the same time with the server.
but sometimes the Celestia program crash,when it synchonize time with the network server,
though not very often, it troubles me.
I've look at the debugging information and it shows that when the time is set, the velocity and position is also calculated,so there's a mistake.
How to solve this problem?
Thanks.
the function to set time is appCore->getSimulation()->setTime(curTime);
the time data(curTime) is sent from the network server,so it can share the same time with the server.
but sometimes the Celestia program crash,when it synchonize time with the network server,
though not very often, it troubles me.
I've look at the debugging information and it shows that when the time is set, the velocity and position is also calculated,so there's a mistake.
How to solve this problem?
Thanks.