industry_gui.c
branch0.4
changeset 10067 9c4cb00a88fc
parent 9959 984493ab6fff
equal deleted inserted replaced
10066:250f5564fcae 10067:9c4cb00a88fc
   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;