mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r9934) -Fix (r9923): towns could remove 'half' tram tracks.
This commit is contained in:
parent
1b2016a4b2
commit
04f9b1ab61
|
@ -52,7 +52,7 @@ bool CheckAllowRemoveRoad(TileIndex tile, RoadBits remove, Owner owner, bool *ed
|
||||||
if (_game_mode == GM_EDITOR || remove == ROAD_NONE) return true;
|
if (_game_mode == GM_EDITOR || remove == ROAD_NONE) return true;
|
||||||
|
|
||||||
/* Only do the special processing for actual players. */
|
/* 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
|
/* Only do the special processing if the road is owned
|
||||||
* by a town */
|
* by a town */
|
||||||
|
|
Loading…
Reference in New Issue