diff options
author | rubidium <rubidium@openttd.org> | 2012-02-11 20:08:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2012-02-11 20:08:31 +0000 |
commit | 0e925c9e5e0df9fa0576b02c2b2984d819fcf6e3 (patch) | |
tree | 94891607655c2935831311baf5c682279eb540c4 /src/script/api/script_news.cpp | |
parent | 1b13eb49dd86cca51f8bd529aeae2f2bf94da5a3 (diff) | |
download | openttd-0e925c9e5e0df9fa0576b02c2b2984d819fcf6e3.tar.xz |
(svn r23927) -Fix [FS#5056]: 32bpp animated blitter was optimised a bit too far regarding not needing to update the colour mapping when (re)initialising the palette
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 9319c8df0..aaa8a6895 100644 --- a/src/script/api/script_news.cpp +++ b/src/script/api/script_news.cpp @@ -21,7 +21,7 @@ EnforcePrecondition(false, text != NULL); EnforcePrecondition(false, !StrEmpty(text->GetEncodedText())); - EnforcePrecondition(false, type >= NT_ARRIVAL_COMPANY && type <= NT_GENERAL); + EnforcePrecondition(false, type == NT_ECONOMY || type == NT_SUBSIDIES || type == NT_GENERAL); EnforcePrecondition(false, company == ScriptCompany::COMPANY_INVALID || ScriptCompany::ResolveCompanyID(company) != ScriptCompany::COMPANY_INVALID); uint8 c = company; |