summaryrefslogtreecommitdiff
path: root/src/news_func.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-05-26 14:15:46 +0000
committerfrosch <frosch@openttd.org>2012-05-26 14:15:46 +0000
commitc796801c4d6c87c554e84312b1c3afd866e0e49c (patch)
tree591a8966fdacb5f7025b7fe0fb2f4b7094e30dbe /src/news_func.h
parent806e5f33d4daa7d571af580b6f8bf5897e7a5b0b (diff)
downloadopenttd-c796801c4d6c87c554e84312b1c3afd866e0e49c.tar.xz
(svn r24281) -Cleanup: Merge all company news subtypes into a single one; they all behave the same.
Diffstat (limited to 'src/news_func.h')
-rw-r--r--src/news_func.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/news_func.h b/src/news_func.h
index 4ee7ae000..542a307e4 100644
--- a/src/news_func.h
+++ b/src/news_func.h
@@ -19,9 +19,9 @@
void AddNewsItem(StringID string, NewsSubtype subtype, NewsReferenceType reftype1 = NR_NONE, uint32 ref1 = UINT32_MAX, NewsReferenceType reftype2 = NR_NONE, uint32 ref2 = UINT32_MAX, void *free_data = NULL);
-static inline void AddCompanyNewsItem(StringID string, NewsSubtype subtype, CompanyNewsInformation *cni)
+static inline void AddCompanyNewsItem(StringID string, CompanyNewsInformation *cni)
{
- AddNewsItem(string, subtype, NR_NONE, UINT32_MAX, NR_NONE, UINT32_MAX, cni);
+ AddNewsItem(string, NS_COMPANY_INFO, NR_NONE, UINT32_MAX, NR_NONE, UINT32_MAX, cni);
}
/**