# HG changeset patch # User rubidium # Date 1170753952 0 # Node ID 71f42ac939284b36d5a46b11fc6e6ee8295da537 # Parent c6adfc929c6bfbd443740fe3d09d0a7e6278a3fe (svn r8608) -Fix: you were unable to build roads in the scenario editor when there is no town 0, even though there are other towns. diff -r c6adfc929c6b -r 71f42ac93928 src/road_cmd.cpp --- a/src/road_cmd.cpp Mon Feb 05 21:16:56 2007 +0000 +++ b/src/road_cmd.cpp Tue Feb 06 09:25:52 2007 +0000 @@ -263,7 +263,7 @@ /* Road pieces are max 4 bitset values (NE, NW, SE, SW) and town can only be non-zero * if a non-player is building the road */ - if ((p1 >> 4) || (IsValidPlayer(_current_player) && p2 != 0) || !IsValidTownID(p2)) return CMD_ERROR; + if ((p1 >> 4) || (IsValidPlayer(_current_player) && p2 != 0) || (_current_player == OWNER_TOWN && !IsValidTownID(p2))) return CMD_ERROR; pieces = (RoadBits)p1; tileh = GetTileSlope(tile, NULL);