mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r2315) - Fix: [ 1187613 ] No HQ present for competitor, disable 'View HQ' button, inspired by lucaspiller
This commit is contained in:
parent
4c0c553a8f
commit
788286e9d3
@ -509,6 +509,8 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
|
|||||||
|
|
||||||
if (!_networking) SETBIT(w->hidden_state, 11); // hide company-password widget
|
if (!_networking) SETBIT(w->hidden_state, 11); // hide company-password widget
|
||||||
} else {
|
} else {
|
||||||
|
if (p->location_of_house == 0) SETBIT(dis, 7);
|
||||||
|
|
||||||
if (_patches.allow_shares) { /* shares are allowed */
|
if (_patches.allow_shares) { /* shares are allowed */
|
||||||
/* If all shares are owned by someone (none by nobody), disable buy button */
|
/* If all shares are owned by someone (none by nobody), disable buy button */
|
||||||
if (GetAmountOwnedBy(p, OWNER_SPECTATOR) == 0) SETBIT(dis, 9);
|
if (GetAmountOwnedBy(p, OWNER_SPECTATOR) == 0) SETBIT(dis, 9);
|
||||||
|
Loading…
Reference in New Issue
Block a user