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 | 788286e9d3e7dddaf38ee8de46750206b190e06d (patch) | |
tree | 9857611e3cbf8f78e8e2d3710570662c19b4529d | |
parent | 4c0c553a8f5c2c2ce17d41ff4485f408f8ceaae5 (diff) | |
download | openttd-788286e9d3e7dddaf38ee8de46750206b190e06d.tar.xz |
(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller
-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); |