diff options
author | dominik <dominik@openttd.org> | 2004-08-20 15:30:32 +0000 |
---|---|---|
committer | dominik <dominik@openttd.org> | 2004-08-20 15:30:32 +0000 |
commit | 4f253c2656fe04a97cbd3fabaab98798cc514456 (patch) | |
tree | 401a88cf9d0d998b66646e41f12c7b4d409989fd /settings_gui.c | |
parent | 951ce251c0045dccf3a06c498e59a84ee2824034 (diff) | |
download | openttd-4f253c2656fe04a97cbd3fabaab98798cc514456.tar.xz |
(svn r92) Feature: invisible trees when in transparent mode (patch entry)
Diffstat (limited to 'settings_gui.c')
-rw-r--r-- | settings_gui.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/settings_gui.c b/settings_gui.c index e8334808c..d4718f381 100644 --- a/settings_gui.c +++ b/settings_gui.c @@ -678,6 +678,12 @@ int32 AiNew_PatchActive_Warning(int32 p1) return 0; } +int32 InvisibleTreesActive(int32 p1) +{ + MarkWholeScreenDirty(); + return 0; +} + typedef int32 PatchButtonClick(int32); static PatchButtonClick * const _patch_button_proc[] = { &v_PositionMainToolbar, @@ -715,6 +721,7 @@ static const PatchEntry _patches_ui[] = { {PE_UINT8, 0, STR_CONFIG_PATCHES_ERRMSG_DURATION, &_patches.errmsg_duration, 0, 20, 1}, {PE_UINT8, PF_MULTISTRING, STR_CONFIG_PATCHES_TOOLBAR_POS, &_patches.toolbar_pos, 0, 2, 1, &v_PositionMainToolbar}, + {PE_BOOL, 0, STR_CONFIG_PATCHES_INVISIBLE_TREES, &_patches.invisible_trees, 0, 1, 1, &InvisibleTreesActive}, }; static const PatchEntry _patches_construction[] = { |