File diff r7123:bafbd0ab115f → r7124:afc3522b590f
src/economy.cpp
Show inline comments
 
@@ -1242,13 +1242,12 @@ static void DeliverGoodsToIndustry(TileI
 

	
 
static bool CheckSubsidised(Station *from, Station *to, CargoID cargo_type)
 
{
 
	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++) {
 
		if (s->cargo_type == cargo_type &&
 
				s->age >= 12 &&
 
				s->from == from->index &&
 
@@ -1288,16 +1287,15 @@ static bool CheckSubsidised(Station *fro
 
			s->age = 12;
 
			s->from = from->index;
 
			s->to = to->index;
 

	
 
			/* 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),
 
				pair.a, pair.b
 
			);