(svn r16406) -Codechange: constify parameters of CheckSubsidised()

pull/155/head
smatz 15 years ago
parent 6bad10d216
commit c1861060f7

@ -286,7 +286,7 @@ no_add:;
InvalidateWindow(WC_SUBSIDIES_LIST, 0); InvalidateWindow(WC_SUBSIDIES_LIST, 0);
} }
bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type) bool CheckSubsidised(const Station *from, const Station *to, CargoID cargo_type)
{ {
Subsidy *s; Subsidy *s;
TileIndex xy; TileIndex xy;

@ -16,7 +16,7 @@ Pair SetupSubsidyDecodeParam(const Subsidy *s, bool mode);
void DeleteSubsidyWithTown(TownID index); void DeleteSubsidyWithTown(TownID index);
void DeleteSubsidyWithIndustry(IndustryID index); void DeleteSubsidyWithIndustry(IndustryID index);
void DeleteSubsidyWithStation(StationID index); void DeleteSubsidyWithStation(StationID index);
bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type); bool CheckSubsidised(const Station *from, const Station *to, CargoID cargo_type);
void SubsidyMonthlyHandler(); void SubsidyMonthlyHandler();
#endif /* SUBSIDY_FUNC_H */ #endif /* SUBSIDY_FUNC_H */

Loading…
Cancel
Save