--- a/clear_cmd.c Mon Apr 03 05:32:11 2006 +0000
+++ b/clear_cmd.c Mon Apr 03 09:07:21 2006 +0000
@@ -577,14 +577,14 @@
/* distance from snow line, in steps of 8 */
int k = GetTileZ(tile) - _opt.snow_line;
- if (k < -8) { // well below the snow line
+ if (k < -TILE_HEIGHT) { // well below the snow line
if (!IsClearGround(tile, CL_SNOW)) return;
if (GetClearDensity(tile) == 0) SetClearGroundDensity(tile, CL_GRASS, 3);
} else {
if (!IsClearGround(tile, CL_SNOW)) {
SetClearGroundDensity(tile, CL_SNOW, 0);
} else {
- uint density = min((uint)(k + 8) / 8, 3);
+ uint density = min((uint)(k + TILE_HEIGHT) / TILE_HEIGHT, 3);
if (GetClearDensity(tile) < density) {
AddClearDensity(tile, 1);
@@ -738,7 +738,7 @@
void InitializeClearLand(void)
{
- _opt.snow_line = _patches.snow_line_height * 8;
+ _opt.snow_line = _patches.snow_line_height * TILE_HEIGHT;
}
const TileTypeProcs _tile_type_clear_procs = {