(svn r17107) -Codechange: store type of subsidy source and destination in the Subsidy struct instead of determining it every time it's needed

This commit is contained in:
smatz
2009-08-07 22:23:34 +00:00
parent 876d09d751
commit 738d7fde53
13 changed files with 157 additions and 171 deletions

View File

@@ -88,10 +88,10 @@ Station::~Station()
DeleteWindowById(WC_AIRCRAFT_LIST, wno | (VEH_AIRCRAFT << 11));
/* Now delete all orders that go to the station */
RemoveOrderFromAllVehicles(OT_GOTO_STATION, index);
RemoveOrderFromAllVehicles(OT_GOTO_STATION, this->index);
/* Subsidies need removal as well */
DeleteSubsidyWithStation(index);
DeleteSubsidyWith(ST_STATION, this->index);
/* Remove all news items */
DeleteStationNews(this->index);