diff options
author | rubidium <rubidium@openttd.org> | 2007-05-26 13:00:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-26 13:00:52 +0000 |
commit | 04f9b1ab613e9bcb28922f51e782eb660dbf456f (patch) | |
tree | d7702429a153eab37f41e49c572ee3a09a201d57 /src | |
parent | 1b2016a4b25d30c279619d93f2978dc5ad069614 (diff) | |
download | openttd-04f9b1ab613e9bcb28922f51e782eb660dbf456f.tar.xz |
(svn r9934) -Fix (r9923): towns could remove 'half' tram tracks.
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index a71f1088a..78c7897b7 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 */ |