Ensure that sprite aligner click to pick sprites is thread safe
Use a mutex for list of sprite IDs found in (threaded) draw jobs
This commit is contained in:
@@ -3082,6 +3082,7 @@ void HandleMouseEvents()
|
||||
/* We are done with the last draw-frame, so we know what sprites we
|
||||
* clicked on. Reset the picker mode and invalidate the window. */
|
||||
_newgrf_debug_sprite_picker.mode = SPM_NONE;
|
||||
_newgrf_debug_sprite_picker.DrawingComplete();
|
||||
InvalidateWindowData(WC_SPRITE_ALIGNER, 0, 1);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user