mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 20:12:42 +00:00
Codechange: make TransparencyOption a scoped enum
This commit is contained in:
committed by
Peter Nelson
parent
a144bf2f8b
commit
0e951f3528
+2
-2
@@ -483,9 +483,9 @@ static void DrawTile_Object(TileInfo *ti)
|
||||
DrawGroundSprite(dts->ground.sprite, palette);
|
||||
}
|
||||
|
||||
if (!IsInvisibilitySet(TO_STRUCTURES)) {
|
||||
if (!IsInvisibilitySet(TransparencyOption::Structures)) {
|
||||
for (const DrawTileSeqStruct &dtss : dts->GetSequence()) {
|
||||
AddSortableSpriteToDraw(dtss.image.sprite, palette, *ti, dtss, IsTransparencySet(TO_STRUCTURES));
|
||||
AddSortableSpriteToDraw(dtss.image.sprite, palette, *ti, dtss, IsTransparencySet(TransparencyOption::Structures));
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user