summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-27 08:06:40 +0000
committerbjarni <bjarni@openttd.org>2006-09-27 08:06:40 +0000
commitbd6f087ab10f0f61504acf72c6c92fbb73a2f3ce (patch)
treef3959e014356b2ec84f1392732e6ebc6d9c30c18
parent0739d0c6f67a05bd3ff5339276f45367e53aff3c (diff)
downloadopenttd-bd6f087ab10f0f61504acf72c6c92fbb73a2f3ce.tar.xz
(svn r6519) -Code cleanup r6518: changed a line to apply to the coding style
-rw-r--r--vehicle_gui.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 41e183957..21b7531cc 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -294,8 +294,7 @@ static void VehicleRefitWndProc(Window *w, WindowEvent *e)
case VEH_Ship: command = CMD_REFIT_SHIP | CMD_MSG(STR_9841_CAN_T_REFIT_SHIP); break;
case VEH_Aircraft: command = CMD_REFIT_AIRCRAFT | CMD_MSG(STR_A042_CAN_T_REFIT_AIRCRAFT); break;
}
- if (DoCommandP(v->tile, v->index, WP(w,refit_d).cargo, NULL, command))
- DeleteWindow(w);
+ if (DoCommandP(v->tile, v->index, WP(w,refit_d).cargo, NULL, command)) DeleteWindow(w);
}
break;
}