equal
deleted
inserted
replaced
842 tp.b = tile2; |
842 tp.b = tile2; |
843 |
843 |
844 return tp; |
844 return tp; |
845 } |
845 } |
846 |
846 |
847 void DeleteSubsidyWithIndustry(uint16 index) |
847 void DeleteSubsidyWithIndustry(IndustryID index) |
848 { |
848 { |
849 Subsidy *s; |
849 Subsidy *s; |
850 |
850 |
851 for (s = _subsidies; s != endof(_subsidies); s++) { |
851 for (s = _subsidies; s != endof(_subsidies); s++) { |
852 if (s->cargo_type != CT_INVALID && s->age < 12 && |
852 if (s->cargo_type != CT_INVALID && s->age < 12 && |
855 s->cargo_type = CT_INVALID; |
855 s->cargo_type = CT_INVALID; |
856 } |
856 } |
857 } |
857 } |
858 } |
858 } |
859 |
859 |
860 void DeleteSubsidyWithStation(uint16 index) |
860 void DeleteSubsidyWithStation(StationID index) |
861 { |
861 { |
862 Subsidy *s; |
862 Subsidy *s; |
863 bool dirty = false; |
863 bool dirty = false; |
864 |
864 |
865 for (s = _subsidies; s != endof(_subsidies); s++) { |
865 for (s = _subsidies; s != endof(_subsidies); s++) { |