diff options
Diffstat (limited to 'Stars45/NetLobbyServer.cpp')
-rw-r--r-- | Stars45/NetLobbyServer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Stars45/NetLobbyServer.cpp b/Stars45/NetLobbyServer.cpp index 5cac691..0520f96 100644 --- a/Stars45/NetLobbyServer.cpp +++ b/Stars45/NetLobbyServer.cpp @@ -41,7 +41,7 @@ #include "NetMsg.h" #include "MachineInfo.h" -#include "Game.h" +#include "Clock.h" #include "FormatUtil.h" #include "VersionInfo.h" @@ -256,9 +256,9 @@ NetLobbyServer::ExecFrame() { NetLobby::ExecFrame(); - if (announce_time == 0 || Game::GetInstance()->GetClock()->RealTime() - announce_time > 200000) { + if (announce_time == 0 || Clock::GetInstance()->RealTime() - announce_time > 200000) { GameOn(); - announce_time = Game::GetInstance()->GetClock()->RealTime(); + announce_time = Clock::GetInstance()->RealTime(); } if (GetStatus() == NetServerInfo::BRIEFING) { @@ -377,7 +377,7 @@ NetLobbyServer::CheckSessions() // announce drop: char timestr[64]; - FormatTime(timestr, Game::GetInstance()->GetClock()->RealTime()/1000); + FormatTime(timestr, Clock::GetInstance()->RealTime()/1000); Print("NetLobbyServer: Dropped inactive connection '%s' %s\n", u->Name().data(), timestr); |