diff options
author | Darkvater <darkvater@openttd.org> | 2006-01-31 22:16:15 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-01-31 22:16:15 +0000 |
commit | f2448ebfd4324b0c914e36b81801fc1ffa04da94 (patch) | |
tree | 763ef198108c0320af48fbac22bf9c998430da2d /console_cmds.c | |
parent | 9d07426a29817fbaddcb8f8c726e16a32bb123d0 (diff) | |
download | openttd-f2448ebfd4324b0c914e36b81801fc1ffa04da94.tar.xz |
(svn r3500) - Workaround the inaccurate count of spectators/companies that can happen in certain border-cases. For now just dynamically get this value when requested so it is always right. To do properly all player/client creation/destruction needs a hook for networking.
Diffstat (limited to 'console_cmds.c')
-rw-r--r-- | console_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/console_cmds.c b/console_cmds.c index 0570bc6f3..ba6a3bd9c 100644 --- a/console_cmds.c +++ b/console_cmds.c @@ -545,8 +545,8 @@ DEF_CONSOLE_CMD(ConServerInfo) gi = &_network_game_info; IConsolePrintF(_icolour_def, "Current/maximum clients: %2d/%2d", gi->clients_on, gi->clients_max); - IConsolePrintF(_icolour_def, "Current/maximum companies: %2d/%2d", gi->companies_on, gi->companies_max); - IConsolePrintF(_icolour_def, "Current/maximum spectators: %2d/%2d", gi->spectators_on, gi->spectators_max); + IConsolePrintF(_icolour_def, "Current/maximum companies: %2d/%2d", ActivePlayerCount(), gi->companies_max); + IConsolePrintF(_icolour_def, "Current/maximum spectators: %2d/%2d", NetworkSpectatorCount(), gi->spectators_max); return true; } |