From 9cfb89cf240c74b3d31e801daabbe91b042c241b Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 14 May 2005 22:51:15 +0000 Subject: (svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller --- player_gui.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'player_gui.c') diff --git a/player_gui.c b/player_gui.c index 4bf57f553..33d51dd63 100644 --- a/player_gui.c +++ b/player_gui.c @@ -509,6 +509,8 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e) 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); -- cgit v1.2.3-54-g00ecf