mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-28 22:54:29 +01:00
Codechange: Use EnumBitSet for LandscapeTypes and remove LandscapeID. (#13436)
This commit is contained in:
@@ -189,10 +189,10 @@ static void LoadSpriteTables()
|
||||
* This overwrites some of the temperate sprites, such as foundations
|
||||
* and the ground sprites.
|
||||
*/
|
||||
if (_settings_game.game_creation.landscape != LT_TEMPERATE) {
|
||||
if (_settings_game.game_creation.landscape != LandscapeType::Temperate) {
|
||||
LoadGrfFileIndexed(
|
||||
used_set->files[GFT_ARCTIC + _settings_game.game_creation.landscape - 1].filename,
|
||||
_landscape_spriteindexes[_settings_game.game_creation.landscape - 1],
|
||||
used_set->files[GFT_ARCTIC + to_underlying(_settings_game.game_creation.landscape) - 1].filename,
|
||||
_landscape_spriteindexes[to_underlying(_settings_game.game_creation.landscape) - 1],
|
||||
PAL_DOS != used_set->palette
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user