From 798cc00c973c2bee131837e7b50e97d95647638a Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 21 Aug 2011 12:53:38 +0000 Subject: [PATCH] (svn r22798) -Change: jump immediately to the next mode after scanning (if needed) --- src/gfx.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gfx.cpp b/src/gfx.cpp index b8c19f9b1e..88943534cf 100644 --- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -1565,6 +1565,12 @@ void DrawDirtyBlocks() _realtime_tick += MODAL_PROGRESS_REDRAW_TIMEOUT; _modal_progress_paint_mutex->BeginCritical(); _modal_progress_work_mutex->BeginCritical(); + + extern void SwitchToMode(SwitchMode new_mode); + if (_switch_mode != SM_NONE && !HasModalProgress()) { + SwitchToMode(_switch_mode); + _switch_mode = SM_NONE; + } } y = 0;