diff options
author | truelight <truelight@openttd.org> | 2005-01-15 19:06:22 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2005-01-15 19:06:22 +0000 |
commit | 7cafdf3b0bc441586929be57ace0e9510f454381 (patch) | |
tree | 86e7a6e69dee1414ae1e88cfceffd93f1b28ded2 /station_cmd.c | |
parent | 0e651d9702ff028b75ad5834b614a25b4f119257 (diff) | |
download | openttd-7cafdf3b0bc441586929be57ace0e9510f454381.tar.xz |
(svn r1525) -Codechange: rewrote the _order_array, now it can be made dynamic.
-Codechange: renamed all 'schedule' stuff to 'order(list)'
-Codechange: moved all order-stuff to order_cmd.c / order.h
-Codechange: vehicles that share orders are now linked to eachother
with next_shared/prev_shared in Vehicle
Developers: please use AssignOrder to assign data to an order. If not,
you _WILL_ make the save-routine to assert!
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/station_cmd.c b/station_cmd.c index 29b23855c..9ee23292b 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -94,7 +94,7 @@ static Station *GetStationAround(uint tile, int w, int h, int closest_station) return (closest_station == -1) ? NULL : GetStation(closest_station); } -TileIndex GetStationTileForVehicle(Vehicle *v, Station *st) +TileIndex GetStationTileForVehicle(const Vehicle *v, const Station *st) { switch (v->type) { case VEH_Train: return st->train_tile; @@ -2257,10 +2257,11 @@ static void DeleteStation(Station *st) index = st->index; DeleteWindowById(WC_STATION_VIEW, index); + order.type = OT_GOTO_STATION; - order.flags = 0; order.station = index; - DeleteCommandFromVehicleSchedule(order); + DeleteDestinationFromVehicleOrder(order); + DeleteSubsidyWithStation(index); } |