File diff r18260:9616113792ef → r18261:0aa61ca7490f
src/water_cmd.cpp
Show inline comments
 
@@ -791,13 +791,13 @@ void DrawShipDepotSprite(int x, int y, A
 

	
 
	DrawSprite(dts.ground.sprite, dts.ground.pal, x, y);
 
	DrawOrigTileSeqInGUI(x, y, &dts, COMPANY_SPRITE_COLOUR(_local_company));
 
}
 

	
 

	
 
static uint GetSlopePixelZ_Water(TileIndex tile, uint x, uint y)
 
static int GetSlopePixelZ_Water(TileIndex tile, uint x, uint y)
 
{
 
	int z;
 
	Slope tileh = GetTilePixelSlope(tile, &z);
 

	
 
	return z + GetPartialPixelZ(x & 0xF, y & 0xF, tileh);
 
}
 
@@ -1199,13 +1199,13 @@ static void ChangeTileOwner_Water(TileIn
 

	
 
static VehicleEnterTileStatus VehicleEnter_Water(Vehicle *v, TileIndex tile, int x, int y)
 
{
 
	return VETSB_CONTINUE;
 
}
 

	
 
static CommandCost TerraformTile_Water(TileIndex tile, DoCommandFlag flags, uint z_new, Slope tileh_new)
 
static CommandCost TerraformTile_Water(TileIndex tile, DoCommandFlag flags, int z_new, Slope tileh_new)
 
{
 
	/* Canals can't be terraformed */
 
	if (IsWaterTile(tile) && IsCanal(tile)) return_cmd_error(STR_ERROR_MUST_DEMOLISH_CANAL_FIRST);
 

	
 
	return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
 
}