Chunnel: Add error text for too many tunnels.

This commit is contained in:
Jonathan G Rennison
2017-03-04 13:06:43 +00:00
parent ab38623ea6
commit 02b33e7f64
3 changed files with 8 additions and 2 deletions

View File

@@ -813,7 +813,7 @@ CommandCost CmdBuildTunnel(TileIndex start_tile, DoCommandFlag flags, uint32 p1,
TileIndex ts = end_tile;
if(start_tile > end_tile) Swap(tn, ts);
if (!Tunnel::CanAllocateItem()) return CMD_ERROR;
if (!Tunnel::CanAllocateItem()) return_cmd_error(STR_ERROR_TUNNEL_TOO_MANY);
const Tunnel *t = new Tunnel(tn, ts, is_chunnel);
if (transport_type == TRANSPORT_RAIL) {