Skip to content

Commit

Permalink
(svn r19678) -Fix (r19607): client status was shown incorrect in the …
Browse files Browse the repository at this point in the history
…console
  • Loading branch information
rubidium42 committed Apr 19, 2010
1 parent 1ce5d3e commit df4d8b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/network/core/tcp_game.h
Expand Up @@ -85,6 +85,7 @@ enum ClientStatus {
STATUS_DONE_MAP, ///< The client has downloaded the map
STATUS_PRE_ACTIVE, ///< The client is catching up the delayed frames
STATUS_ACTIVE, ///< The client is active within in the game
STATUS_END ///< Must ALWAYS be on the end of this list!! (period)
};

class NetworkClientSocket;
Expand Down
4 changes: 3 additions & 1 deletion src/network/network_server.cpp
Expand Up @@ -1703,14 +1703,16 @@ void NetworkServerShowStatusToConsole()
{
static const char * const stat_str[] = {
"inactive",
"authorizing",
"authorizing (server password)",
"authorizing (company password)",
"authorized",
"waiting",
"loading map",
"map done",
"ready",
"active"
};
assert_compile(lengthof(stat_str) == STATUS_END);

NetworkClientSocket *cs;
FOR_ALL_CLIENT_SOCKETS(cs) {
Expand Down

0 comments on commit df4d8b3

Please sign in to comment.