diff options
author | rubidium <rubidium@openttd.org> | 2009-12-02 18:18:56 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-02 18:18:56 +0000 |
commit | 0ef0e1379534c6372ea93790c1e4b0855c8077d1 (patch) | |
tree | d044e4280831f6afdf44626ee303896ef8570c6b /src/roadstop.cpp | |
parent | 429f3993f8dc380780a23a6f46420797a9a8a11c (diff) | |
download | openttd-0ef0e1379534c6372ea93790c1e4b0855c8077d1.tar.xz |
(svn r18385) -Cleanup: remove the now unneeded multistop slot management code
Diffstat (limited to 'src/roadstop.cpp')
-rw-r--r-- | src/roadstop.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/roadstop.cpp b/src/roadstop.cpp index 969c1d21d..67b54fdbd 100644 --- a/src/roadstop.cpp +++ b/src/roadstop.cpp @@ -19,21 +19,11 @@ RoadStopPool _roadstop_pool("RoadStop"); INSTANTIATE_POOL_METHODS(RoadStop) /** - * De-Initializes RoadStops. This includes clearing all slots that vehicles might - * have and unlinks it from the linked list of road stops at the given station + * De-Initializes RoadStops. */ RoadStop::~RoadStop() { if (CleaningPool()) return; - - /* Clear the slot assignment of all vehicles heading for this road stop */ - if (this->num_vehicles != 0) { - RoadVehicle *rv; - FOR_ALL_ROADVEHICLES(rv) { - if (rv->slot == this) ClearSlot(rv); - } - } - assert(this->num_vehicles == 0); } /** |