Changeset - r1811:64bc1d2d023c
[Not reviewed]
master
0 1 0
Darkvater - 19 years ago 2005-05-14 22:51:15
darkvater@openttd.org
(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
player_gui.c
Show inline comments
 
@@ -509,6 +509,8 @@ static void PlayerCompanyWndProc(Window 
 

	
 
			if (!_networking) SETBIT(w->hidden_state, 11); // hide company-password widget
 
		} else {
 
			if (p->location_of_house == 0) SETBIT(dis, 7);
 

	
 
			if (_patches.allow_shares) { /* shares are allowed */
 
				/* If all shares are owned by someone (none by nobody), disable buy button */
 
				if (GetAmountOwnedBy(p, OWNER_SPECTATOR) == 0) SETBIT(dis, 9);
0 comments (0 inline, 0 general)