From 9595ee80e3014ea90d2680e1c9135fb01532e0c0 Mon Sep 17 00:00:00 2001 From: truelight Date: Wed, 15 Dec 2004 20:24:26 +0000 Subject: (svn r1107) -Fix: [Network] A spectator can no longer buy/sell shares of companies --- player_gui.c | 1 + 1 file changed, 1 insertion(+) diff --git a/player_gui.c b/player_gui.c index c0990a27e..8301c0258 100644 --- a/player_gui.c +++ b/player_gui.c @@ -494,6 +494,7 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e) // and the player is not an AI if (GetAmountOwnedBy(p, OWNER_SPECTATOR) == 1 && !p->is_ai) dis |= 1 << 9; if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 10; + if (_local_player == OWNER_SPECTATOR) dis |= (1 << 9) | (1 << 10); w->disabled_state = dis; DrawWindowWidgets(w); -- cgit v1.2.3-70-g09d2