mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 08:29:11 +00:00
(svn r17858) -Codechange: Unindent some code.
This commit is contained in:
@@ -2118,9 +2118,9 @@ CommandCost CmdRefitRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
|
|||||||
if (!CanRefitTo(v->engine_type, new_cid)) continue;
|
if (!CanRefitTo(v->engine_type, new_cid)) continue;
|
||||||
|
|
||||||
const Engine *e = Engine::Get(v->engine_type);
|
const Engine *e = Engine::Get(v->engine_type);
|
||||||
if (e->CanCarryCargo()) {
|
if (!e->CanCarryCargo()) continue;
|
||||||
uint16 amount = CALLBACK_FAILED;
|
|
||||||
|
|
||||||
|
uint16 amount = CALLBACK_FAILED;
|
||||||
if (HasBit(e->info.callback_mask, CBM_VEHICLE_REFIT_CAPACITY)) {
|
if (HasBit(e->info.callback_mask, CBM_VEHICLE_REFIT_CAPACITY)) {
|
||||||
/* Back up the vehicle's cargo type */
|
/* Back up the vehicle's cargo type */
|
||||||
CargoID temp_cid = v->cargo_type;
|
CargoID temp_cid = v->cargo_type;
|
||||||
@@ -2169,7 +2169,6 @@ CommandCost CmdRefitRailVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1,
|
|||||||
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
|
SetWindowDirty(WC_VEHICLE_DEPOT, v->tile);
|
||||||
InvalidateWindowClassesData(WC_TRAINS_LIST, 0);
|
InvalidateWindowClassesData(WC_TRAINS_LIST, 0);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} while ((v = v->Next()) != NULL && !only_this);
|
} while ((v = v->Next()) != NULL && !only_this);
|
||||||
|
|
||||||
_returned_refit_capacity = num;
|
_returned_refit_capacity = num;
|
||||||
|
Reference in New Issue
Block a user