diff options
author | smatz <smatz@openttd.org> | 2011-01-15 15:51:16 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2011-01-15 15:51:16 +0000 |
commit | 0ab078158e0b02ab094af7b714d0c39da1871b6b (patch) | |
tree | 10c39b3b8910d10012b37fda856d64ad1d598571 /src/vehicle.cpp | |
parent | 679cd3c21b44d0fdcbed2edaf7b243dcb1ac89f6 (diff) | |
download | openttd-0ab078158e0b02ab094af7b714d0c39da1871b6b.tar.xz |
(svn r21804) -Remove [FS#4409]: the 'stopall' console command, as its functionality was broken. Group start/stop commands can be used instead
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index f5bffc159..2dd158329 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2174,19 +2174,6 @@ Order *Vehicle::GetNextManualOrder(int index) const return order; } -void StopAllVehicles() -{ - Vehicle *v; - FOR_ALL_VEHICLES(v) { - /* Code ripped from CmdStartStopTrain. Can't call it, because of - * ownership problems, so we'll duplicate some code, for now */ - v->vehstatus |= VS_STOPPED; - v->MarkDirty(); - SetWindowWidgetDirty(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH); - SetWindowDirty(WC_VEHICLE_DEPOT, v->tile); - } -} - void VehiclesYearlyLoop() { Vehicle *v; |