summaryrefslogtreecommitdiff
path: root/src/misc_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-12-16 10:54:08 +0000
committerrubidium <rubidium@openttd.org>2007-12-16 10:54:08 +0000
commitec90ce7e98b29371b0fb139256065ac9991ca289 (patch)
tree267e33cbd909ce3837ebac7aca128ba8b4e40d0f /src/misc_gui.cpp
parentacf6e08f7840c9b6b89bd6e758972bf2bea29c5f (diff)
downloadopenttd-ec90ce7e98b29371b0fb139256065ac9991ca289.tar.xz
(svn r11643) -Codechange: conform with the coding style for the WP macro uses.
Diffstat (limited to 'src/misc_gui.cpp')
-rw-r--r--src/misc_gui.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp
index 4bccbf62f..da0fbb762 100644
--- a/src/misc_gui.cpp
+++ b/src/misc_gui.cpp
@@ -343,8 +343,8 @@ static void BuildTreesWndProc(Window *w, WindowEvent *e)
DrawWindowWidgets(w);
- WP(w,tree_d).base = i = _tree_base_by_landscape[_opt.landscape];
- WP(w,tree_d).count = count = _tree_count_by_landscape[_opt.landscape];
+ WP(w, tree_d).base = i = _tree_base_by_landscape[_opt.landscape];
+ WP(w, tree_d).count = count = _tree_count_by_landscape[_opt.landscape];
x = 18;
y = 54;
@@ -369,10 +369,10 @@ static void BuildTreesWndProc(Window *w, WindowEvent *e)
case 3: case 4: case 5: case 6:
case 7: case 8: case 9: case 10:
case 11:case 12: case 13: case 14:
- if (wid - 3 >= WP(w,tree_d).count) break;
+ if (wid - 3 >= WP(w, tree_d).count) break;
if (HandlePlacePushButton(w, wid, SPR_CURSOR_TREE, VHM_RECT, NULL))
- _tree_to_plant = WP(w,tree_d).base + wid - 3;
+ _tree_to_plant = WP(w, tree_d).base + wid - 3;
break;
case 15: // tree of random type.
@@ -1856,7 +1856,7 @@ static void CheatsWndProc(Window *w, WindowEvent *e)
{
switch (e->event) {
case WE_PAINT: {
- int clk = WP(w,def_d).data_1;
+ int clk = WP(w, def_d).data_1;
int x, y;
int i;
@@ -1935,7 +1935,7 @@ static void CheatsWndProc(Window *w, WindowEvent *e)
switch (ce->type) {
case SLE_BOOL:
- if (ce->flags & CE_CLICK) WP(w,def_d).data_1 = btn * 2 + 1;
+ if (ce->flags & CE_CLICK) WP(w, def_d).data_1 = btn * 2 + 1;
value ^= 1;
if (ce->proc != NULL) ce->proc(value, 0);
break;
@@ -1953,7 +1953,7 @@ static void CheatsWndProc(Window *w, WindowEvent *e)
value = ce->proc(value, (x >= 30) ? 1 : -1);
if (value != oldvalue) {
- WP(w,def_d).data_1 = btn * 2 + 1 + ((x >= 30) ? 1 : 0);
+ WP(w, def_d).data_1 = btn * 2 + 1 + ((x >= 30) ? 1 : 0);
}
} break;
}
@@ -1969,7 +1969,7 @@ static void CheatsWndProc(Window *w, WindowEvent *e)
}
break;
case WE_TIMEOUT:
- WP(w,def_d).data_1 = 0;
+ WP(w, def_d).data_1 = 0;
SetWindowDirty(w);
break;
}