Changeset - r7124:afc3522b590f
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2007-06-30 08:26:34
peter1138@openttd.org
(svn r10397) -Fix [FS#969]: subsidy awarded messages broken due to {COMPANY} now taking 1 (not 2) parameters. also remove an unnecessary dereference.
1 file changed with 2 insertions and 4 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -1245,7 +1245,6 @@ static bool CheckSubsidised(Station *fro
 
	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 @@ static bool CheckSubsidised(Station *fro
 

	
 
			/* 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),
0 comments (0 inline, 0 general)