summaryrefslogtreecommitdiff
path: root/src/settings_type.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2011-11-24 12:20:14 +0000
committerpeter1138 <peter1138@openttd.org>2011-11-24 12:20:14 +0000
commit4e97261315211c65459b91685537f82e5c454604 (patch)
tree155bbd8a8a459ba9b0a74c4ca230a2ab99cb99fd /src/settings_type.h
parent00db8b800866b47f0ee6a7f4ad2c227eab97bd53 (diff)
downloadopenttd-4e97261315211c65459b91685537f82e5c454604.tar.xz
(svn r23314) -Add: Add settings to restrict viewport zoom levels.
Diffstat (limited to 'src/settings_type.h')
-rw-r--r--src/settings_type.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/settings_type.h b/src/settings_type.h
index 9fe550240..d23011eb7 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -17,6 +17,7 @@
#include "transport_type.h"
#include "network/core/config.h"
#include "company_type.h"
+#include "zoom_type.h"
#include "openttd.h"
/** Available industry map generation densities. */
@@ -79,6 +80,8 @@ struct GUISettings {
uint8 statusbar_pos; ///< position of statusbar, 0=left, 1=center, 2=right
uint8 window_snap_radius; ///< windows snap at each other if closer than this
uint8 window_soft_limit; ///< soft limit of maximum number of non-stickied non-vital windows (0 = no limit)
+ ZoomLevelByte zoom_min; ///< minimum zoom out level
+ ZoomLevelByte zoom_max; ///< maximum zoom out level
bool disable_unsuitable_building; ///< disable infrastructure building when no suitable vehicles are available
byte autosave; ///< how often should we do autosaves?
bool threaded_saves; ///< should we do threaded saves?