(svn r17117) -Fix (r1): don't create pax subsidy when source town, not destination town, has good service
This commit is contained in:
		@@ -192,11 +192,10 @@ static void FindSubsidyPassengerRoute(FoundRoute *fr)
 | 
				
			|||||||
	fr->distance = UINT_MAX;
 | 
						fr->distance = UINT_MAX;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	fr->from = from = Town::GetRandom();
 | 
						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();
 | 
						fr->to = to = Town::GetRandom();
 | 
				
			||||||
	if (from == to || to == NULL || to->population < 400 || to->pct_pass_transported > 42)
 | 
						if (from == to || to == NULL || to->population < 400) return;
 | 
				
			||||||
		return;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	fr->distance = DistanceManhattan(from->xy, to->xy);
 | 
						fr->distance = DistanceManhattan(from->xy, to->xy);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user