Add new landscape variable for ground density and snow presence

This commit is contained in:
Jonathan G Rennison
2022-12-12 23:19:44 +00:00
parent 0d4f196451
commit 39277404a2
5 changed files with 20 additions and 0 deletions

View File

@@ -49,6 +49,9 @@ std::vector<const GRFFile *> _new_landscape_rocks_grfs;
case 0x44:
return this->landscape_type;
case 0x45:
return GetClearDensity(this->ti->tile) | (IsSnowTile(this->ti->tile) ? 0x10 : 0);
case 0x60: {
TileIndex tile = this->ti->tile;
if (parameter != 0) tile = GetNearbyTile(parameter, tile); // only perform if it is required