Define NOMINMAX globally to work around VS nonsense.

This commit is contained in:
2020-10-02 20:31:22 +02:00
parent 35a2110698
commit 21b7500e13
3 changed files with 6 additions and 9 deletions

View File

@@ -47,7 +47,10 @@ void CNShardServer::keepAliveTimer(CNServer* serv, time_t currTime) {
}
void CNShardServer::periodicSaveTimer(CNServer* serv, time_t currTime) {
std::cout << "[INFO] Saving players to DB..." << std::endl;
if (PlayerManager::players.empty())
return;
std::cout << "[INFO] Saving " << PlayerManager::players.size() << " players to DB..." << std::endl;
for (auto& pair : PlayerManager::players) {
Database::updatePlayer(pair.second.plr);