summaryrefslogtreecommitdiff
path: root/economy.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-10-17 23:34:12 +0000
committerDarkvater <darkvater@openttd.org>2006-10-17 23:34:12 +0000
commite97d801d9255d405690141cffc5e3488bb419273 (patch)
tree60abaed2f57035730d0ffc371d9915b76b3426c2 /economy.c
parent7cdf6f0aff61598ec5d38dc3826ce6d1252248f5 (diff)
downloadopenttd-e97d801d9255d405690141cffc5e3488bb419273.tar.xz
(svn r6816) -Codechange: Some coding style, variable localization, const correctness.
-Codechange: 'quited' is not a word, use has_quit instead for NetworkClientState
Diffstat (limited to 'economy.c')
-rw-r--r--economy.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/economy.c b/economy.c
index a8d0e30f4..f41db66a9 100644
--- a/economy.c
+++ b/economy.c
@@ -420,14 +420,12 @@ static void PlayersCheckBankrupt(Player *p)
p->bankrupt_timeout = 0x456;
} else {
#ifdef ENABLE_NETWORK
+ /* If we are the server make sure it is clear that this player is not active */
if (IsHumanPlayer(owner) && _network_server) {
- // If we are the server, make sure it is clear that his player is no
- // longer with us!
- NetworkClientInfo *ci;
- NetworkClientState *cs;
+ const NetworkClientState *cs;
/* Find all clients that were in control of this company */
FOR_ALL_CLIENTS(cs) {
- ci = DEREF_CLIENT_INFO(cs);
+ NetworkClientInfo *ci = DEREF_CLIENT_INFO(cs);
if (ci->client_playas == owner) {
ci->client_playas = PLAYER_SPECTATOR;
// Send the new info to all the clients