summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index 3040e05d7..6d58567e3 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -230,7 +230,7 @@ void CcCloneRoadVeh(bool success, uint tile, uint32 p1, uint32 p2)
static void RoadVehViewWndProc(Window *w, WindowEvent *e)
{
- switch(e->event) {
+ switch (e->event) {
case WE_PAINT: {
Vehicle *v = GetVehicle(w->window_number);
StringID str;
@@ -447,7 +447,7 @@ static void NewRoadVehWndProc(Window *w, WindowEvent *e)
break;
case WE_CLICK:
- switch(e->click.widget) {
+ switch (e->click.widget) {
case 2: { /* listbox */
uint i = (e->click.pt.y - 14) / 14;
if (i < w->vscroll.cap) {
@@ -679,13 +679,13 @@ static void ClonePlaceObj(TileIndex tile, const Window* w)
static void RoadDepotWndProc(Window *w, WindowEvent *e)
{
- switch(e->event) {
+ switch (e->event) {
case WE_PAINT:
DrawRoadDepotWindow(w);
break;
case WE_CLICK: {
- switch(e->click.widget) {
+ switch (e->click.widget) {
case 5:
RoadDepotClickVeh(w, e->click.pt.x, e->click.pt.y);
break;
@@ -739,7 +739,7 @@ static void RoadDepotWndProc(Window *w, WindowEvent *e)
break;
case WE_DRAGDROP:
- switch(e->click.widget) {
+ switch (e->click.widget) {
case 5: {
Vehicle *v;
VehicleID sel = WP(w,traindepot_d).sel;
@@ -869,7 +869,7 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e)
PlayerID owner = GB(w->window_number, 0, 8);
vehiclelist_d *vl = &WP(w, vehiclelist_d);
- switch(e->event) {
+ switch (e->event) {
case WE_PAINT: {
int x = 2;
int y = PLY_WND_PRC__OFFSET_TOP_WIDGET;
@@ -938,7 +938,7 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e)
} break;
case WE_CLICK: {
- switch(e->click.widget) {
+ switch (e->click.widget) {
case 3: /* Flip sorting method ascending/descending */
vl->flags ^= VL_DESC;
vl->flags |= VL_RESORT;
@@ -984,7 +984,7 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e)
}
tile = TILE_MASK(tile + 1);
- } while(tile != _last_built_road_depot_tile);
+ } while (tile != _last_built_road_depot_tile);
ShowBuildRoadVehWindow(0);
} break;