summaryrefslogtreecommitdiff
path: root/src/subsidy_func.h
diff options
context:
space:
mode:
authorrubidium42 <rubidium@openttd.org>2021-07-03 08:03:33 +0200
committerrubidium42 <rubidium42@users.noreply.github.com>2021-07-03 11:26:13 +0200
commit979783f90e9c5939e645448cf9aac01f86c37fc9 (patch)
tree89070f06c4ab82fed478d0fae0ddd931f1b74988 /src/subsidy_func.h
parent1d9912134df71a0adee5de92b83b9bb361f1f151 (diff)
downloadopenttd-979783f90e9c5939e645448cf9aac01f86c37fc9.tar.xz
Codechange: replace InjectDParam/ShiftParameters by setting the right parameter values in the first place
Diffstat (limited to 'src/subsidy_func.h')
-rw-r--r--src/subsidy_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subsidy_func.h b/src/subsidy_func.h
index 5cd7a3118..a33c5d8bf 100644
--- a/src/subsidy_func.h
+++ b/src/subsidy_func.h
@@ -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();