diff options
author | rubidium <rubidium@openttd.org> | 2008-07-18 16:26:51 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-07-18 16:26:51 +0000 |
commit | 891bec7e23a0a077df93b8fd1fe156ef059df8b4 (patch) | |
tree | 71817bf7af4429f1e29b23c2bb0148ca8b0bea3c /src/news_type.h | |
parent | e48d86fad0a384335fa4c49a4f15032bee54b16e (diff) | |
download | openttd-891bec7e23a0a077df93b8fd1fe156ef059df8b4.tar.xz |
(svn r13730) -Fix: make a copy of the names for news messages about the deletion of companies as the removal of a company could lead to wrong names in the news messages.
Diffstat (limited to 'src/news_type.h')
-rw-r--r-- | src/news_type.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/news_type.h b/src/news_type.h index 975011899..b83603ab6 100644 --- a/src/news_type.h +++ b/src/news_type.h @@ -109,7 +109,26 @@ struct NewsItem { uint data_a; ///< Custom data 1 (usually tile or vehicle) uint data_b; ///< Custom data 2 + void *free_data; ///< Data to be freed when the news item has reached it's end. + uint64 params[10]; }; +/** + * Data that needs to be stored for company news messages. + * The problem with company news messages are the custom name + * of the companies and the fact that the company data is reset, + * resulting in wrong names and such. + */ +struct CompanyNewsInformation { + char company_name[64]; ///< The name of the company + char president_name[64]; ///< The name of the president + char other_company_name[64]; ///< The name of the company taking over this one + + uint32 face; ///< The face of the president + byte colour; ///< The colour related to the company + + void FillData(const struct Player *p, const struct Player *other = NULL); +}; + #endif /* NEWS_TYPE_H */ |