From fbc724c6cb0847c765ebc95d0598f608474c7476 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Tue, 17 Oct 2006 22:16:46 +0000 Subject: (svn r6814) -Codechange: For network games ci->client_playas was always p->index + 1. To correctly handle this ci->client_playas - 1 was used all over the code making it pretty confusing at times. Use proper one-on-one values now. Special handling is only needed for user-output to not to confuse users. --- economy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'economy.c') diff --git a/economy.c b/economy.c index e03c9c17e..a8d0e30f4 100644 --- a/economy.c +++ b/economy.c @@ -428,7 +428,7 @@ static void PlayersCheckBankrupt(Player *p) /* Find all clients that were in control of this company */ FOR_ALL_CLIENTS(cs) { ci = DEREF_CLIENT_INFO(cs); - if ((ci->client_playas-1) == owner) { + if (ci->client_playas == owner) { ci->client_playas = PLAYER_SPECTATOR; // Send the new info to all the clients NetworkUpdateClientInfo(_network_own_client_index); -- cgit v1.2.3-70-g09d2