(svn r23106) -Codechange: pass int* to GetTileSlope and friends
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
* @param entrance Entrance edge.
|
||||
* @return true iff terraforming is allowed.
|
||||
*/
|
||||
static inline bool AutoslopeCheckForEntranceEdge(TileIndex tile, uint z_new, Slope tileh_new, DiagDirection entrance)
|
||||
static inline bool AutoslopeCheckForEntranceEdge(TileIndex tile, int z_new, Slope tileh_new, DiagDirection entrance)
|
||||
{
|
||||
if (GetTileMaxZ(tile) != z_new + GetSlopeMaxZ(tileh_new)) return false;
|
||||
return ((tileh_new == SLOPE_FLAT) || CanBuildDepotByTileh(entrance, tileh_new));
|
||||
|
Reference in New Issue
Block a user