diff options
author | rubidium <rubidium@openttd.org> | 2007-12-16 10:54:08 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-16 10:54:08 +0000 |
commit | ec90ce7e98b29371b0fb139256065ac9991ca289 (patch) | |
tree | 267e33cbd909ce3837ebac7aca128ba8b4e40d0f /src/town_gui.cpp | |
parent | acf6e08f7840c9b6b89bd6e758972bf2bea29c5f (diff) | |
download | openttd-ec90ce7e98b29371b0fb139256065ac9991ca289.tar.xz |
(svn r11643) -Codechange: conform with the coding style for the WP macro uses.
Diffstat (limited to 'src/town_gui.cpp')
-rw-r--r-- | src/town_gui.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/town_gui.cpp b/src/town_gui.cpp index a9bae18a4..ebfd06278 100644 --- a/src/town_gui.cpp +++ b/src/town_gui.cpp @@ -140,8 +140,8 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e) SetVScrollCount(w, numact + 1); - if (WP(w,def_d).data_1 != -1 && !HasBit(buttons, WP(w,def_d).data_1)) - WP(w,def_d).data_1 = -1; + if (WP(w, def_d).data_1 != -1 && !HasBit(buttons, WP(w,def_d).data_1)) + WP(w, def_d).data_1 = -1; w->SetWidgetDisabledState(6, WP(w, def_d).data_1 == -1); @@ -206,7 +206,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e) } { - int i = WP(w,def_d).data_1; + int i = WP(w, def_d).data_1; if (i != -1) { SetDParam(1, (_price.build_industry >> 8) * _town_action_costs[i]); @@ -228,7 +228,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e) y = GetNthSetBit(GetMaskOfTownActions(NULL, _local_player, t), y + w->vscroll.pos - 1); if (y >= 0) { - WP(w,def_d).data_1 = y; + WP(w, def_d).data_1 = y; SetWindowDirty(w); } /* Fall through to clicking in case we are double-clicked */ @@ -236,7 +236,7 @@ static void TownAuthorityWndProc(Window *w, WindowEvent *e) } case TWA_EXECUTE: { - DoCommandP(GetTown(w->window_number)->xy, w->window_number, WP(w,def_d).data_1, NULL, CMD_DO_TOWN_ACTION | CMD_MSG(STR_00B4_CAN_T_DO_THIS)); + DoCommandP(GetTown(w->window_number)->xy, w->window_number, WP(w, def_d).data_1, NULL, CMD_DO_TOWN_ACTION | CMD_MSG(STR_00B4_CAN_T_DO_THIS)); break; } } @@ -262,7 +262,7 @@ static void ShowTownAuthorityWindow(uint town) if (w != NULL) { w->vscroll.cap = 5; - WP(w,def_d).data_1 = -1; + WP(w, def_d).data_1 = -1; } } |