(svn r1107) -Fix: [Network] A spectator can no longer buy/sell shares of companies
authortruelight
Wed, 15 Dec 2004 20:24:26 +0000
changeset 669 75646b8921be
parent 668 346853c8b513
child 670 7c58dc46609c
(svn r1107) -Fix: [Network] A spectator can no longer buy/sell shares of companies
player_gui.c
--- a/player_gui.c	Wed Dec 15 20:10:34 2004 +0000
+++ b/player_gui.c	Wed Dec 15 20:24:26 2004 +0000
@@ -494,6 +494,7 @@
 		//   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);