changeset 13051:828b43ca3092 draft

(svn r17549) -Fix (r17128): Distance limit for town to town subsidies got lost.
author frosch <frosch@openttd.org>
date Tue, 15 Sep 2009 18:47:42 +0000
parents 5cade6728298
children 6dba8bf1c036
files src/subsidy.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/subsidy.cpp
+++ b/src/subsidy.cpp
@@ -185,7 +185,7 @@
 		return NULL;
 	}
 
-	if (DistanceManhattan(src->xy, src->xy) > SUBSIDY_MAX_DISTANCE) return NULL;
+	if (DistanceManhattan(src->xy, dst->xy) > SUBSIDY_MAX_DISTANCE) return NULL;
 	if (CheckSubsidyDuplicate(CT_PASSENGERS, ST_TOWN, src->index, ST_TOWN, dst->index)) return NULL;
 
 	Subsidy *s = new Subsidy();