diff options
author | frosch <frosch@openttd.org> | 2011-02-23 20:54:55 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-02-23 20:54:55 +0000 |
commit | 19b7249adee1dba623ba4ee69266cd13888deb3d (patch) | |
tree | 4f399e2587ff32b008c60b8f6211e1f7021f5210 /src/window_func.h | |
parent | 40cc3324fadce60522e97791604ae3a6643f4c2e (diff) | |
download | openttd-19b7249adee1dba623ba4ee69266cd13888deb3d.tar.xz |
(svn r22135) -Fix [FS#4523]: When commands need to invalidate windows, process these events asynchronously before the next redraw. Calling window code directly from command scope uses wrong _current_company and might issue nested DoCommands() which interfer with the running command.
Diffstat (limited to 'src/window_func.h')
-rw-r--r-- | src/window_func.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window_func.h b/src/window_func.h index 3d51644f6..933d19877 100644 --- a/src/window_func.h +++ b/src/window_func.h @@ -34,8 +34,8 @@ void ResetWindowSystem(); void SetupColoursAndInitialWindow(); void InputLoop(); -void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0); -void InvalidateWindowClassesData(WindowClass cls, int data = 0); +void InvalidateWindowData(WindowClass cls, WindowNumber number, int data = 0, bool immediatelly = false); +void InvalidateWindowClassesData(WindowClass cls, int data = 0, bool immediatelly = false); void DeleteNonVitalWindows(); void DeleteAllNonVitalWindows(); |