(svn r21367) -Fix (r18719)[FS#4283]: Fields were not cleared under snow though they were intended to be.

This commit is contained in:
frosch
2010-12-01 21:35:18 +00:00
parent 487b8fc372
commit 9ecaa47953

View File

@@ -316,7 +316,7 @@ static inline void MakeSnow(TileIndex t, uint density = 0)
{
assert(GetClearGround(t) != CLEAR_SNOW);
SetBit(_m[t].m3, 4);
if (GetClearGround(t) == CLEAR_FIELDS) {
if (GetRawClearGround(t) == CLEAR_FIELDS) {
SetClearGroundDensity(t, CLEAR_GRASS, density);
} else {
SetClearDensity(t, density);