diff options
Diffstat (limited to 'StarsEx/StarServer.cpp')
-rw-r--r-- | StarsEx/StarServer.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/StarsEx/StarServer.cpp b/StarsEx/StarServer.cpp index 5173a50..a7bb169 100644 --- a/StarsEx/StarServer.cpp +++ b/StarsEx/StarServer.cpp @@ -54,9 +54,7 @@ StarServer::StarServer() : current_mission {nullptr}, admin_server {nullptr}, lobby_server {nullptr}, - loader {nullptr}, - time_mark {0}, - minutes {0} + loader {nullptr} { if (instance != nullptr) throw "StarServer may have only one instance"; @@ -152,9 +150,6 @@ StarServer::InitGame() Shot::Initialize(); RadioTraffic::Initialize(); - time_mark = Clock::GetInstance()->GameTime(); - minutes = 0; - NetServerConfig* server_config = NetServerConfig::GetInstance(); if (!server_config) return false; @@ -316,15 +311,6 @@ StarServer::GameState() } else if (game_mode == PLAY_MODE) { - if (Clock::GetInstance()->GameTime() - time_mark > 60000) { - time_mark = Clock::GetInstance()->GameTime(); - minutes++; - if (minutes > 60) - Print(" TIME %2d:%02d:00\n", minutes/60, minutes%60); - else - Print(" TIME %2d:00\n", minutes); - } - Sleep(10); } } |