diff options
author | tron <tron@openttd.org> | 2006-02-01 06:32:03 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-02-01 06:32:03 +0000 |
commit | 22dc05faf2219f6e3803f9cbff92249823bb11eb (patch) | |
tree | 567a406e1224ab13f36027469339c6c42ada96f1 /industry_gui.c | |
parent | 8cdd3261fc5e37d2d39364d9c2c1449f83b1c504 (diff) | |
download | openttd-22dc05faf2219f6e3803f9cbff92249823bb11eb.tar.xz |
(svn r3510) Fiddle with whitespace and parentheses
Diffstat (limited to 'industry_gui.c')
-rw-r--r-- | industry_gui.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/industry_gui.c b/industry_gui.c index 24decb00c..3fd0be363 100644 --- a/industry_gui.c +++ b/industry_gui.c @@ -26,7 +26,7 @@ extern void DrawArrowButtons(int x, int y, int state); static void BuildIndustryWndProc(Window *w, WindowEvent *e) { - switch(e->event) { + switch (e->event) { case WE_PAINT: DrawWindowWidgets(w); if (_thd.place_mode == 1 && _thd.window_class == WC_BUILD_INDUSTRY) { @@ -278,7 +278,7 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e) // WP(w,vp2_d).data_2 is for the clickline // WP(w,vp2_d).data_3 is for the click pos (left or right) - switch(e->event) { + switch (e->event) { case WE_PAINT: { const Industry *i; StringID str; @@ -319,8 +319,9 @@ static void IndustryViewWndProc(Window *w, WindowEvent *e) SetDParam(2, i->pct_transported[1] * 100 >> 8); DrawString(4 + (NEED_ALTERB ? 30 : 0), 137, STR_482B_TRANSPORTED, 0); // Let's put out those buttons.. - if (NEED_ALTERB) - DrawArrowButtons(5, 137, (WP(w,vp2_d).data_2 == 2 ? WP(w,vp2_d).data_3 : 0)); + if (NEED_ALTERB) { + DrawArrowButtons(5, 137, (WP(w,vp2_d).data_2 == 2 ? WP(w,vp2_d).data_3 : 0)); + } } } @@ -563,7 +564,7 @@ static void MakeSortedIndustryList(void) static void IndustryDirectoryWndProc(Window *w, WindowEvent *e) { - switch(e->event) { + switch (e->event) { case WE_PAINT: { int n; uint p; @@ -604,8 +605,7 @@ static void IndustryDirectoryWndProc(Window *w, WindowEvent *e) DrawString(4, 28+n*10, STR_INDUSTRYDIR_ITEM_NOPROD, 0); } p++; - if (++n == w->vscroll.cap) - break; + if (++n == w->vscroll.cap) break; } } break; @@ -672,7 +672,6 @@ static const WindowDesc _industry_directory_desc = { }; - void ShowIndustryDirectory(void) { /* Industry List */ |