summaryrefslogtreecommitdiff
path: root/player_gui.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-14 22:51:15 +0000
committerDarkvater <darkvater@openttd.org>2005-05-14 22:51:15 +0000
commit788286e9d3e7dddaf38ee8de46750206b190e06d (patch)
tree9857611e3cbf8f78e8e2d3710570662c19b4529d /player_gui.c
parent4c0c553a8f5c2c2ce17d41ff4485f408f8ceaae5 (diff)
downloadopenttd-788286e9d3e7dddaf38ee8de46750206b190e06d.tar.xz
(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller
Diffstat (limited to 'player_gui.c')
-rw-r--r--player_gui.c2
1 files changed, 2 insertions, 0 deletions
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);