summaryrefslogtreecommitdiffhomepage
path: root/StarsEx
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2022-04-06 23:32:23 +0200
committerAki <please@ignore.pl>2022-04-06 23:32:23 +0200
commitbe8570bca631e9488a8aff437d5af13b4f6983bc (patch)
tree266033878b68cdacbab94823102d3b28d65ee67f /StarsEx
parent02e0a382c10d183cf8d53ad031fed26b7e596cc5 (diff)
downloadstarshatter-be8570bca631e9488a8aff437d5af13b4f6983bc.zip
starshatter-be8570bca631e9488a8aff437d5af13b4f6983bc.tar.gz
starshatter-be8570bca631e9488a8aff437d5af13b4f6983bc.tar.bz2
Removed periodic print outs in server's play mode
Diffstat (limited to 'StarsEx')
-rw-r--r--StarsEx/StarServer.cpp16
-rw-r--r--StarsEx/StarServer.h3
2 files changed, 1 insertions, 18 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);
}
}
diff --git a/StarsEx/StarServer.h b/StarsEx/StarServer.h
index 565f61d..dd0e866 100644
--- a/StarsEx/StarServer.h
+++ b/StarsEx/StarServer.h
@@ -47,9 +47,6 @@ protected:
NetLobbyServer* lobby_server;
DataLoader* loader;
- DWORD time_mark;
- DWORD minutes;
-
private:
static StarServer* instance;
};