summaryrefslogtreecommitdiffstats
path: root/src/Server.h
diff options
context:
space:
mode:
authorjfhumann <j.f.humann@gmail.com>2014-04-19 17:53:02 +0200
committerjfhumann <j.f.humann@gmail.com>2014-04-19 17:53:02 +0200
commit4dd7610381c5a9cbd29b771e6c98b5d500774ac6 (patch)
tree0a0c76f587dcafd040d618674bdc914ebf7c4dcf /src/Server.h
parentFixed clang compilation errors. Apparently gcc and MSVC do not care about the order of initializer lists, but clang does. (diff)
downloadcuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.gz
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.bz2
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.lz
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.xz
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.tar.zst
cuberite-4dd7610381c5a9cbd29b771e6c98b5d500774ac6.zip
Diffstat (limited to '')
-rw-r--r--src/Server.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Server.h b/src/Server.h
index b5c384a44..51c450ebd 100644
--- a/src/Server.h
+++ b/src/Server.h
@@ -59,7 +59,7 @@ public: // tolua_export
// Player counts:
int GetMaxPlayers(void) const {return m_MaxPlayers; }
- int GetNumPlayers(void);
+ int GetNumPlayers(void) const;
void SetMaxPlayers(int a_MaxPlayers) { m_MaxPlayers = a_MaxPlayers; }
// Hardcore mode or not:
@@ -168,7 +168,7 @@ private:
cClientHandleList m_Clients; ///< Clients that are connected to the server and not yet assigned to a cWorld
cClientHandleList m_ClientsToRemove; ///< Clients that have just been moved into a world and are to be removed from m_Clients in the next Tick()
- cCriticalSection m_CSPlayerCount; ///< Locks the m_PlayerCount
+ mutable cCriticalSection m_CSPlayerCount; ///< Locks the m_PlayerCount
int m_PlayerCount; ///< Number of players currently playing in the server
cCriticalSection m_CSPlayerCountDiff; ///< Locks the m_PlayerCountDiff
int m_PlayerCountDiff; ///< Adjustment to m_PlayerCount to be applied in the Tick thread