diff options
author | rubidium <rubidium@openttd.org> | 2007-12-13 18:46:04 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-12-13 18:46:04 +0000 |
commit | a0f2366e4052dbcdfcd5931b60104efdcf8ba83e (patch) | |
tree | 559800253167a43a8051c35a9601c98276c5cca8 /src/window.h | |
parent | 98d18c533789031756d3aebb6753d683494d4688 (diff) | |
download | openttd-a0f2366e4052dbcdfcd5931b60104efdcf8ba83e.tar.xz |
(svn r11629) -Fix [FS#1527]: many viewports could crash the scenario editor.
Diffstat (limited to 'src/window.h')
-rw-r--r-- | src/window.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/window.h b/src/window.h index 1fae1a5ca..11086e64b 100644 --- a/src/window.h +++ b/src/window.h @@ -14,6 +14,11 @@ #include "vehicle.h" #include "viewport.h" +/** + * The maximum number of windows that can be opened. + */ +static const int MAX_NUMBER_OF_WINDOWS = 25; + struct WindowEvent; typedef void WindowProc(Window *w, WindowEvent *e); |