From 04f9b1ab613e9bcb28922f51e782eb660dbf456f Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 26 May 2007 13:00:52 +0000 Subject: [PATCH] (svn r9934) -Fix (r9923): towns could remove 'half' tram tracks. --- src/road_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index a71f1088ac..78c7897b7a 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -52,7 +52,7 @@ bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *ed if (_game_mode == GM_EDITOR || remove == ROAD_NONE) return true; /* Only do the special processing for actual players. */ - if (!IsValidPlayer(_current_player)) return true; + if (rt == ROADTYPE_ROAD && !IsValidPlayer(_current_player)) return true; /* Only do the special processing if the road is owned * by a town */