(svn r13261) [NoAI] -Fix r11221: one of the many 'syncs' between trunk and NoAI went wrong, leaving towns more powerful than they should be (removing roads where they shouldn't) noai
authortruebrain
Mon, 26 May 2008 11:36:42 +0000
branchnoai
changeset 10713 c5c9dc32c052
parent 10691 a60393d87c0b
child 10715 6bdf79ffb022
(svn r13261) [NoAI] -Fix r11221: one of the many 'syncs' between trunk and NoAI went wrong, leaving towns more powerful than they should be (removing roads where they shouldn't)
src/road_cmd.cpp
--- a/src/road_cmd.cpp	Sat May 24 22:48:46 2008 +0000
+++ b/src/road_cmd.cpp	Mon May 26 11:36:42 2008 +0000
@@ -893,8 +893,7 @@
 
 			/* Clear the road if only one piece is on the tile OR the AI tries
 			 * to clear town road OR we are not using the DC_AUTO flag */
-			if ((CountBits(b) == 1 && GetRoadBits(tile, ROADTYPE_TRAM) == ROAD_NONE) ||
-			    IsTileOwner(tile, OWNER_TOWN) || !(flags & DC_AUTO)
+			if ((CountBits(b) == 1 && GetRoadBits(tile, ROADTYPE_TRAM) == ROAD_NONE) || !(flags & DC_AUTO)
 				) {
 				RoadTypes rts = GetRoadTypes(tile);
 				CommandCost ret(EXPENSES_CONSTRUCTION);