# HG changeset patch # User truebrain # Date 1211801802 0 # Node ID c5c9dc32c05276a42074b83260cf7a290e8ef198 # Parent a60393d87c0b4c53447533be87db2704e17065f6 (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) diff -r a60393d87c0b -r c5c9dc32c052 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);