Changeset - r4192:d0f4ca4267ed
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2006-07-30 14:53:59
darkvater@openttd.org
(svn r5652) -Fix [SF 1480301]: Industry production change button doesn't work
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
industry_gui.c
Show inline comments
 
@@ -342,13 +342,13 @@ static void IndustryViewWndProc(Window *
 
			// We should work if needed..
 
			if (!NEED_ALTERB)
 
				return;
 

	
 
			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) {
 
						// decrease
 
						i->production_rate[line] /= 2;
 
						if (i->production_rate[line] < 4)
0 comments (0 inline, 0 general)