equal
deleted
inserted
replaced
343 if (!NEED_ALTERB) |
343 if (!NEED_ALTERB) |
344 return; |
344 return; |
345 |
345 |
346 x = e->click.pt.x; |
346 x = e->click.pt.x; |
347 line = (e->click.pt.y - 127) / 10; |
347 line = (e->click.pt.y - 127) / 10; |
348 if (e->click.pt.y >= 127 && IS_INT_INSIDE(line, 0, 2) && i->produced_cargo[line]) { |
348 if (e->click.pt.y >= 127 && IS_INT_INSIDE(line, 0, 2) && i->produced_cargo[line] != CT_INVALID) { |
349 if (IS_INT_INSIDE(x, 5, 25) ) { |
349 if (IS_INT_INSIDE(x, 5, 25) ) { |
350 // clicked buttons |
350 // clicked buttons |
351 if (x < 15) { |
351 if (x < 15) { |
352 // decrease |
352 // decrease |
353 i->production_rate[line] /= 2; |
353 i->production_rate[line] /= 2; |