(svn r23977) -Fix: don't load a game during UpdateWindows as that might trigger changing the blitter which triggers re-entrant locking

replace/41b28d7194a279bdc17475d4fbe2ea6ec885a466
rubidium 13 years ago
parent 0aecd1fa7b
commit 37a4acc7e0

@ -1732,10 +1732,11 @@ void DrawDirtyBlocks()
_modal_progress_paint_mutex->BeginCritical(); _modal_progress_paint_mutex->BeginCritical();
_modal_progress_work_mutex->BeginCritical(); _modal_progress_work_mutex->BeginCritical();
if (_switch_mode != SM_NONE && !HasModalProgress()) { /* When we ended with the modal progress, do not draw the blocks.
SwitchToMode(_switch_mode); * Simply let the next run do so, otherwise we would be loading
_switch_mode = SM_NONE; * the new state (and possibly change the blitter) when we hold
} * the drawing lock, which we must not do. */
if (_switch_mode != SM_NONE && !HasModalProgress()) return;
} }
y = 0; y = 0;

Loading…
Cancel
Save