From 2ed0f93bfbd27ba4b4dc3e590556ffae6d9b9338 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 4 Nov 2011 10:22:27 +0000 Subject: (svn r23093) -Codechange: add a default NULL for the Z of GetTileSlope and use it --- src/rail_cmd.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/rail_cmd.cpp') diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 7ef04122e..185a83556 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -381,7 +381,7 @@ CommandCost CmdBuildSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1, u if (!ValParamRailtype(railtype) || !ValParamTrackOrientation(track)) return CMD_ERROR; - Slope tileh = GetTilePixelSlope(tile, NULL); + Slope tileh = GetTileSlope(tile); TrackBits trackbit = TrackToTrackBits(track); switch (GetTileType(tile)) { @@ -590,7 +590,7 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1, owner = GetTileOwner(tile); present ^= trackbit; if (present == 0) { - Slope tileh = GetTilePixelSlope(tile, NULL); + Slope tileh = GetTileSlope(tile); /* If there is flat water on the lower halftile, convert the tile to shore so the water remains */ if (GetRailGroundType(tile) == RAIL_GROUND_WATER && IsSlopeWithOneCornerRaised(tileh)) { MakeShore(tile); @@ -649,7 +649,7 @@ bool FloodHalftile(TileIndex t) bool flooded = false; if (GetRailGroundType(t) == RAIL_GROUND_WATER) return flooded; - Slope tileh = GetTilePixelSlope(t, NULL); + Slope tileh = GetTileSlope(t); TrackBits rail_bits = GetTrackBits(t); if (IsSlopeWithOneCornerRaised(tileh)) { @@ -861,7 +861,7 @@ CommandCost CmdBuildTrainDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, u RailType railtype = Extract(p1); if (!ValParamRailtype(railtype)) return CMD_ERROR; - Slope tileh = GetTilePixelSlope(tile, NULL); + Slope tileh = GetTileSlope(tile); DiagDirection dir = Extract(p2); @@ -1637,7 +1637,7 @@ static CommandCost ClearTile_Track(TileIndex tile, DoCommandFlag flags) switch (GetRailTileType(tile)) { case RAIL_TILE_SIGNALS: case RAIL_TILE_NORMAL: { - Slope tileh = GetTilePixelSlope(tile, NULL); + Slope tileh = GetTileSlope(tile); /* Is there flat water on the lower halftile that gets cleared expensively? */ bool water_ground = (GetRailGroundType(tile) == RAIL_GROUND_WATER && IsSlopeWithOneCornerRaised(tileh)); -- cgit v1.2.3-54-g00ecf