Changeset - r12652:f4d18a7f28db
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-08-08 18:22:29
smatz@openttd.org
(svn r17117) -Fix (r1): don't create pax subsidy when source town, not destination town, has good service
1 file changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
src/subsidy.cpp
Show inline comments
 
@@ -192,11 +192,10 @@ static void FindSubsidyPassengerRoute(Fo
 
	fr->distance = UINT_MAX;
 

	
 
	fr->from = from = Town::GetRandom();
 
	if (from == NULL || from->population < 400) return;
 
	if (from == NULL || from->population < 400 || from->pct_pass_transported > 42) return;
 

	
 
	fr->to = to = Town::GetRandom();
 
	if (from == to || to == NULL || to->population < 400 || to->pct_pass_transported > 42)
 
		return;
 
	if (from == to || to == NULL || to->population < 400) return;
 

	
 
	fr->distance = DistanceManhattan(from->xy, to->xy);
 
}
0 comments (0 inline, 0 general)