diff options
author | Michael Lutz <michi@icosahedron.de> | 2021-11-23 01:05:58 +0100 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2021-12-16 22:28:32 +0100 |
commit | 13528bfcd0f11d738ec23409e26052e70dd233f6 (patch) | |
tree | 7f549fb59e365e6bc9b4a9f05b692ddbd94be38e /src/script/api/script_news.cpp | |
parent | 58cff7b081ce9ea4b5314cf8324ca60607389d15 (diff) | |
download | openttd-13528bfcd0f11d738ec23409e26052e70dd233f6.tar.xz |
Codechange: Un-bitstuff all remaining commands.
Diffstat (limited to 'src/script/api/script_news.cpp')
-rw-r--r-- | src/script/api/script_news.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/api/script_news.cpp b/src/script/api/script_news.cpp index 7f46f5aa6..119cbc735 100644 --- a/src/script/api/script_news.cpp +++ b/src/script/api/script_news.cpp @@ -39,5 +39,5 @@ if (company == ScriptCompany::COMPANY_INVALID) c = INVALID_COMPANY; if (ref_type == NR_NONE) reference = 0; - return ScriptObject::Command<CMD_CUSTOM_NEWS_ITEM>::Do(0, type | (ref_type << 8) | (c << 16), reference, encoded); + return ScriptObject::Command<CMD_CUSTOM_NEWS_ITEM>::Do((::NewsType)type, (::NewsReferenceType)ref_type, (::CompanyID)c, reference, encoded); } |