summaryrefslogtreecommitdiff
path: root/industry_gui.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-01-15 08:58:31 +0000
committertron <tron@openttd.org>2005-01-15 08:58:31 +0000
commit3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169 (patch)
treee70312993e66c5b848feb30831527cca401c08f8 /industry_gui.c
parent7f7c6297f7bb6bb225741773a5438a916a91da08 (diff)
downloadopenttd-3279a7c9a26242f5f0a8e4b41ae6e2d9e24ee169.tar.xz
(svn r1520) Trim 134 (!) lines with trailing whitespace ):
Diffstat (limited to 'industry_gui.c')
-rw-r--r--industry_gui.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/industry_gui.c b/industry_gui.c
index 9f6808788..71bcec5bb 100644
--- a/industry_gui.c
+++ b/industry_gui.c
@@ -333,7 +333,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
switch(e->click.widget) {
case 5: {
- int line;
+ int line;
int x;
byte b;
@@ -350,9 +350,9 @@ 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 (IS_INT_INSIDE(x, 5, 25) ) {
+ if (IS_INT_INSIDE(x, 5, 25) ) {
// clicked buttons
- if (x < 15) {
+ if (x < 15) {
// decrease
i->production_rate[line] /= 2;
if (i->production_rate[line] < 4)
@@ -360,7 +360,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
} else {
// increase
b = i->production_rate[line] * 2;
- if (i->production_rate[line] >= 128)
+ if (i->production_rate[line] >= 128)
b=255;
i->production_rate[line] = b;
}
@@ -373,12 +373,12 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e)
// clicked the text
WP(w,vp2_d).data_1 = line;
SetDParam(0, i->production_rate[line] * 8);
- ShowQueryString(STR_CONFIG_PATCHES_INT32,
- STR_CONFIG_GAME_PRODUCTION,
- 10, 100, w->window_class,
+ ShowQueryString(STR_CONFIG_PATCHES_INT32,
+ STR_CONFIG_GAME_PRODUCTION,
+ 10, 100, w->window_class,
w->window_number);
}
- }
+ }
}
break;
case 6: