File diff r12441:9b4b7d54e20a → r12442:2de615d6604d
src/subsidy.cpp
Show inline comments
 
@@ -59,31 +59,31 @@ Pair SetupSubsidyDecodeParam(const Subsi
 
	/* if mode is false, use the singular form */
 
	const CargoSpec *cs = CargoSpec::Get(s->cargo_type);
 
	SetDParam(0, mode ? cs->name : cs->name_single);
 

	
 
	if (!s->IsAwarded()) {
 
		if (cs->town_effect != TE_PASSENGERS && cs->town_effect != TE_MAIL) {
 
			SetDParam(1, STR_INDUSTRY);
 
			SetDParam(1, STR_INDUSTRY_NAME);
 
			SetDParam(2, s->from);
 
			reftype1 = NR_INDUSTRY;
 

	
 
			if (cs->town_effect != TE_GOODS && cs->town_effect != TE_FOOD) {
 
				SetDParam(4, STR_INDUSTRY);
 
				SetDParam(4, STR_INDUSTRY_NAME);
 
				SetDParam(5, s->to);
 
				reftype2 = NR_INDUSTRY;
 
			} else {
 
				SetDParam(4, STR_TOWN);
 
				SetDParam(4, STR_TOWN_NAME);
 
				SetDParam(5, s->to);
 
				reftype2 = NR_TOWN;
 
			}
 
		} else {
 
			SetDParam(1, STR_TOWN);
 
			SetDParam(1, STR_TOWN_NAME);
 
			SetDParam(2, s->from);
 
			reftype1 = NR_TOWN;
 

	
 
			SetDParam(4, STR_TOWN);
 
			SetDParam(4, STR_TOWN_NAME);
 
			SetDParam(5, s->to);
 
			reftype2 = NR_TOWN;
 
		}
 
	} else {
 
		SetDParam(1, s->from);
 
		reftype1 = NR_STATION;