Codechange: replace InjectDParam/ShiftParameters by setting the right parameter values in the first place

This commit is contained in:
rubidium42
2021-07-03 08:03:33 +02:00
committed by rubidium42
parent 1d9912134d
commit 979783f90e
4 changed files with 13 additions and 36 deletions

View File

@@ -17,7 +17,7 @@
#include "news_type.h"
#include "subsidy_base.h"
std::pair<NewsReferenceType, NewsReferenceType> SetupSubsidyDecodeParam(const struct Subsidy *s, SubsidyDecodeParamType mode);
std::pair<NewsReferenceType, NewsReferenceType> SetupSubsidyDecodeParam(const struct Subsidy *s, SubsidyDecodeParamType mode, uint parameter_offset = 0);
void DeleteSubsidyWith(SourceType type, SourceID index);
bool CheckSubsidised(CargoID cargo_type, CompanyID company, SourceType src_type, SourceID src, const Station *st);
void RebuildSubsidisedSourceAndDestinationCache();