mirror of https://github.com/OpenTTD/OpenTTD
(svn r5672) - Backport from trunk (r5652):
Industry production change button doesn't work for oilrig passangers.release/0.4
parent
6af2e64186
commit
9214c5e0a5
|
@ -345,7 +345,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
|
|||
|
||||
x = e->click.pt.x;
|
||||
line = (e->click.pt.y - 127) / 10;
|
||||
if (e->click.pt.y >= 127 && IS_INT_INSIDE(line, 0, 2) && i->produced_cargo[line]) {
|
||||
if (e->click.pt.y >= 127 && IS_INT_INSIDE(line, 0, 2) && i->produced_cargo[line] != CT_INVALID) {
|
||||
if (IS_INT_INSIDE(x, 5, 25) ) {
|
||||
// clicked buttons
|
||||
if (x < 15) {
|
||||
|
|
Loading…
Reference in New Issue