clear_cmd.c
changeset 4231 2823b3643862
parent 4157 8d0051fdde68
child 4300 c7e43c47a2b9
equal deleted inserted replaced
4230:f4e93251e2f6 4231:2823b3643862
   532 	}
   532 	}
   533 
   533 
   534 	DrawClearLandFence(ti);
   534 	DrawClearLandFence(ti);
   535 }
   535 }
   536 
   536 
   537 static uint GetSlopeZ_Clear(const TileInfo* ti)
   537 static uint GetSlopeZ_Clear(TileIndex tile, uint x, uint y)
   538 {
   538 {
   539 	return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z;
   539 	uint z;
       
   540 	uint tileh = GetTileSlope(tile, &z);
       
   541 
       
   542 	return z + GetPartialZ(x & 0xF, y & 0xF, tileh);
   540 }
   543 }
   541 
   544 
   542 static Slope GetSlopeTileh_Clear(TileIndex tile, Slope tileh)
   545 static Slope GetSlopeTileh_Clear(TileIndex tile, Slope tileh)
   543 {
   546 {
   544 	return tileh;
   547 	return tileh;