Mercurial > hg > openttd
changeset 7124:198ce784f799 draft
(svn r10397) -Fix [FS#969]: subsidy awarded messages broken due to {COMPANY} now taking 1 (not 2) parameters. also remove an unnecessary dereference.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Sat, 30 Jun 2007 08:26:34 +0000 |
parents | b89905ec574e |
children | c46d3397a476 |
files | src/economy.cpp |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/economy.cpp +++ b/src/economy.cpp @@ -1245,7 +1245,6 @@ Subsidy *s; TileIndex xy; Pair pair; - Player *p; /* check if there is an already existing subsidy that applies to us */ for (s = _subsidies; s != endof(_subsidies); s++) { @@ -1291,10 +1290,9 @@ /* Add a news item */ pair = SetupSubsidyDecodeParam(s, 0); - InjectDParam(2); + InjectDParam(1); - p = GetPlayer(_current_player); - SetDParam(0, p->index); + SetDParam(0, _current_player); AddNewsItem( STR_2031_SERVICE_SUBSIDY_AWARDED + _opt.diff.subsidy_multiplier, NEWS_FLAGS(NM_NORMAL, NF_TILE, NT_SUBSIDIES, 0),