1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-29 23:24:31 +01:00

Codechange: Use FlatSet for sprite picker list.

This commit is contained in:
Peter Nelson
2025-05-05 01:12:12 +01:00
committed by Peter Nelson
parent b06273f716
commit e23de03a99
3 changed files with 5 additions and 4 deletions

View File

@@ -1162,7 +1162,7 @@ static void GfxBlitter(const Sprite * const sprite, int x, int y, BlitterMode mo
if (topleft <= clicked && clicked <= bottomright) {
uint offset = (((size_t)clicked - (size_t)topleft) / (blitter->GetScreenDepth() / 8)) % bp.pitch;
if (offset < (uint)bp.width) {
include(_newgrf_debug_sprite_picker.sprites, sprite_id);
_newgrf_debug_sprite_picker.sprites.insert(sprite_id);
}
}
}