diff options
author | Darkvater <Darkvater@openttd.org> | 2005-05-14 22:51:15 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-05-14 22:51:15 +0000 |
commit | 9cfb89cf240c74b3d31e801daabbe91b042c241b (patch) | |
tree | 9857611e3cbf8f78e8e2d3710570662c19b4529d /player_gui.c | |
parent | ed5cf7b28fc7f4d532d084c2b95da14e7625cf80 (diff) | |
download | openttd-9cfb89cf240c74b3d31e801daabbe91b042c241b.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.c | 2 |
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); |