mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r27726) -Fix: Improve error message when trying to build rail track over a depot. (adf88)
This commit is contained in:
parent
a3b356e057
commit
1446d916f0
|
@ -455,7 +455,7 @@ CommandCost CmdBuildSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1, u
|
|||
CommandCost ret = CheckTileOwnership(tile);
|
||||
if (ret.Failed()) return ret;
|
||||
|
||||
if (!IsPlainRail(tile)) return CMD_ERROR;
|
||||
if (!IsPlainRail(tile)) return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); // just get appropriate error message
|
||||
|
||||
if (!IsCompatibleRail(GetRailType(tile), railtype)) return_cmd_error(STR_ERROR_IMPOSSIBLE_TRACK_COMBINATION);
|
||||
|
||||
|
|
Loading…
Reference in New Issue