Mercurial > hg > openttd
changeset 17989:1b70ad382473 draft
(svn r22798) -Change: jump immediately to the next mode after scanning (if needed)
author | rubidium <rubidium@openttd.org> |
---|---|
date | Sun, 21 Aug 2011 12:53:38 +0000 |
parents | 77b13e743894 |
children | 470c1caa3d43 |
files | src/gfx.cpp |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gfx.cpp +++ b/src/gfx.cpp @@ -1565,6 +1565,12 @@ _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;