mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r151) -Fix: [1021566] Buy/Sell 25% share button is broke
This commit is contained in:
parent
7b02cd3248
commit
52f4a7eb16
|
@ -484,8 +484,8 @@ static void PlayerCompanyWndProc(Window *w, WindowEvent *e)
|
|||
SET_DPARAM16(2, GetPlayerNameString((byte)w->window_number, 3));
|
||||
|
||||
dis = 0;
|
||||
if (GetAmountOwnedBy(p, 0xFF) == 0) dis |= 1 << 8;
|
||||
if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 9;
|
||||
if (GetAmountOwnedBy(p, 0xFF) == 0) dis |= 1 << 9;
|
||||
if (GetAmountOwnedBy(p, _local_player) == 0) dis |= 1 << 10;
|
||||
|
||||
w->disabled_state = dis;
|
||||
DrawWindowWidgets(w);
|
||||
|
|
Loading…
Reference in New Issue