mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r19678) -Fix (r19607): client status was shown incorrect in the console
This commit is contained in:
parent
1ce5d3ed12
commit
df4d8b3bc9
@ -85,6 +85,7 @@ enum ClientStatus {
|
|||||||
STATUS_DONE_MAP, ///< The client has downloaded the map
|
STATUS_DONE_MAP, ///< The client has downloaded the map
|
||||||
STATUS_PRE_ACTIVE, ///< The client is catching up the delayed frames
|
STATUS_PRE_ACTIVE, ///< The client is catching up the delayed frames
|
||||||
STATUS_ACTIVE, ///< The client is active within in the game
|
STATUS_ACTIVE, ///< The client is active within in the game
|
||||||
|
STATUS_END ///< Must ALWAYS be on the end of this list!! (period)
|
||||||
};
|
};
|
||||||
|
|
||||||
class NetworkClientSocket;
|
class NetworkClientSocket;
|
||||||
|
@ -1703,7 +1703,8 @@ void NetworkServerShowStatusToConsole()
|
|||||||
{
|
{
|
||||||
static const char * const stat_str[] = {
|
static const char * const stat_str[] = {
|
||||||
"inactive",
|
"inactive",
|
||||||
"authorizing",
|
"authorizing (server password)",
|
||||||
|
"authorizing (company password)",
|
||||||
"authorized",
|
"authorized",
|
||||||
"waiting",
|
"waiting",
|
||||||
"loading map",
|
"loading map",
|
||||||
@ -1711,6 +1712,7 @@ void NetworkServerShowStatusToConsole()
|
|||||||
"ready",
|
"ready",
|
||||||
"active"
|
"active"
|
||||||
};
|
};
|
||||||
|
assert_compile(lengthof(stat_str) == STATUS_END);
|
||||||
|
|
||||||
NetworkClientSocket *cs;
|
NetworkClientSocket *cs;
|
||||||
FOR_ALL_CLIENT_SOCKETS(cs) {
|
FOR_ALL_CLIENT_SOCKETS(cs) {
|
||||||
|
Loading…
Reference in New Issue
Block a user