(svn r18465) -Codechange: simplify CheckTrainInDepot and remove some unneeded wrapper functions

This commit is contained in:
rubidium
2009-12-11 22:04:57 +00:00
parent 64f1e18830
commit b094312631
3 changed files with 13 additions and 26 deletions

View File

@@ -152,7 +152,7 @@ CommandCost CmdMassStartStopVehicle(TileIndex tile, DoCommandFlag flags, uint32
if (!vehicle_list_window) {
if (vehicle_type == VEH_TRAIN) {
if (CheckTrainInDepot(Train::From(v), false) == -1) continue;
if (!Train::From(v)->IsInDepot()) continue;
} else {
if (!(v->vehstatus & VS_HIDDEN)) continue;
}