Chunnel: Use hash table for tunnel search, change tunnel fields and savegame format.
This commit is contained in:
@@ -814,7 +814,7 @@ CommandCost CmdBuildTunnel(TileIndex start_tile, DoCommandFlag flags, uint32 p1,
|
||||
if(start_tile > end_tile) Swap(tn, ts);
|
||||
|
||||
if (!Tunnel::CanAllocateItem()) return_cmd_error(STR_ERROR_TUNNEL_TOO_MANY);
|
||||
const Tunnel *t = new Tunnel(tn, ts, is_chunnel);
|
||||
const Tunnel *t = new Tunnel(tn, ts, TileHeight(tn), is_chunnel);
|
||||
|
||||
if (transport_type == TRANSPORT_RAIL) {
|
||||
if (!IsTunnelTile(start_tile) && c != NULL) c->infrastructure.rail[railtype] += num_pieces;
|
||||
|
Reference in New Issue
Block a user