summaryrefslogtreecommitdiffhomepage
path: root/Stars45/StarServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/StarServer.cpp')
-rw-r--r--Stars45/StarServer.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Stars45/StarServer.cpp b/Stars45/StarServer.cpp
index 34eb77f..25d4dd9 100644
--- a/Stars45/StarServer.cpp
+++ b/Stars45/StarServer.cpp
@@ -168,7 +168,7 @@ StarServer::InitGame()
Shot::Initialize();
RadioTraffic::Initialize();
- time_mark = Game::GetInstance()->GameTime();
+ time_mark = Game::GetInstance()->GetClock()->GameTime();
minutes = 0;
NetServerConfig* server_config = NetServerConfig::GetInstance();
@@ -339,8 +339,8 @@ StarServer::UpdateWorld()
}
static DWORD refresh_time = 0;
- if (RealTime() - refresh_time > 1000) {
- refresh_time = RealTime();
+ if (clock.RealTime() - refresh_time > 1000) {
+ refresh_time = clock.RealTime();
RedrawWindow(hwnd, 0, 0, RDW_ERASE|RDW_INVALIDATE);
}
}
@@ -369,8 +369,8 @@ StarServer::GameState()
}
else if (game_mode == PLAY_MODE) {
- if (Game::GetInstance()->GameTime() - time_mark > 60000) {
- time_mark = Game::GetInstance()->GameTime();
+ if (Game::GetInstance()->GetClock()->GameTime() - time_mark > 60000) {
+ time_mark = Game::GetInstance()->GetClock()->GameTime();
minutes++;
if (minutes > 60)
Print(" TIME %2d:%02d:00\n", minutes/60, minutes%60);