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:
committed by
Peter Nelson
parent
b06273f716
commit
e23de03a99
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user