summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-11-30 18:47:57 +0000
committerpeter1138 <peter1138@openttd.org>2006-11-30 18:47:57 +0000
commit0b77d5176221236e2f5fa632a8a0b97c2d77919c (patch)
treededc9300c824cf690f7859af53fd773f00743a1f
parentc45423695b5c33f94fea140b2d50babfa287b46a (diff)
downloadopenttd-0b77d5176221236e2f5fa632a8a0b97c2d77919c.tar.xz
(svn r7305) -Codestyle: Indentation fixes
-rw-r--r--build_vehicle_gui.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/build_vehicle_gui.c b/build_vehicle_gui.c
index 32a4949f6..b20303f7c 100644
--- a/build_vehicle_gui.c
+++ b/build_vehicle_gui.c
@@ -406,8 +406,9 @@ static void BuildAircraftClickEvent(Window *w, WindowEvent *e)
case BUILD_VEHICLE_WIDGET_BUILD: {
EngineID sel_eng = bv->sel_engine;
- if (sel_eng != INVALID_ENGINE)
+ if (sel_eng != INVALID_ENGINE) {
DoCommandP(w->window_number, sel_eng, 0, CcBuildAircraft, CMD_BUILD_AIRCRAFT | CMD_MSG(STR_A008_CAN_T_BUILD_AIRCRAFT));
+ }
break;
}
@@ -415,8 +416,7 @@ static void BuildAircraftClickEvent(Window *w, WindowEvent *e)
EngineID sel_eng = bv->sel_engine;
if (sel_eng != INVALID_ENGINE) {
bv->rename_engine = sel_eng;
- ShowQueryString(GetCustomEngineName(sel_eng),
- STR_A039_RENAME_AIRCRAFT_TYPE, 31, 160, w->window_class, w->window_number, CS_ALPHANUMERAL);
+ ShowQueryString(GetCustomEngineName(sel_eng), STR_A039_RENAME_AIRCRAFT_TYPE, 31, 160, w->window_class, w->window_number, CS_ALPHANUMERAL);
}
break;
}
@@ -447,8 +447,7 @@ static void NewAircraftWndProc(Window *w, WindowEvent *e)
case WE_ON_EDIT_TEXT: {
if (e->we.edittext.str[0] != '\0') {
_cmd_text = e->we.edittext.str;
- DoCommandP(0, bv->rename_engine, 0, NULL,
- CMD_RENAME_ENGINE | CMD_MSG(STR_A03A_CAN_T_RENAME_AIRCRAFT_TYPE));
+ DoCommandP(0, bv->rename_engine, 0, NULL, CMD_RENAME_ENGINE | CMD_MSG(STR_A03A_CAN_T_RENAME_AIRCRAFT_TYPE));
}
break;
}
@@ -460,12 +459,12 @@ static void NewAircraftWndProc(Window *w, WindowEvent *e)
GenerateBuildList(w);
}
SetWindowDirty(w);
- break;
+ break;
- case WE_RESIZE:
- w->vscroll.cap += e->we.sizing.diff.y / 24;
- w->widget[BUILD_VEHICLE_WIDGET_LIST].data = (w->vscroll.cap << 8) + 1;
- break;
+ case WE_RESIZE:
+ w->vscroll.cap += e->we.sizing.diff.y / 24;
+ w->widget[BUILD_VEHICLE_WIDGET_LIST].data = (w->vscroll.cap << 8) + 1;
+ break;
}
}