mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r22798) -Change: jump immediately to the next mode after scanning (if needed)
This commit is contained in:
parent
cc6e55a246
commit
798cc00c97
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user