summaryrefslogtreecommitdiff
path: root/settings.c
diff options
context:
space:
mode:
authorKUDr <kudr@openttd.org>2006-11-17 19:31:44 +0000
committerKUDr <kudr@openttd.org>2006-11-17 19:31:44 +0000
commitf2cda44d2e3c55069279ad3e03aeb5d2a7f0f35c (patch)
tree9c7682092cc873482f869cd11ccca7d20fe73bc2 /settings.c
parent532271ba65c994ee8bc93752b515b8fc918b6ab5 (diff)
downloadopenttd-f2cda44d2e3c55069279ad3e03aeb5d2a7f0f35c.tar.xz
(svn r7195) -Feature: [FS#297, optional elrails] New patches/vehicles option 'disable electrified railways'.
(original patch by maedhros, ideas: peter1138, Darkvater, Rubidium, Patrick, Eddi|zuHause, ..)
Diffstat (limited to 'settings.c')
-rw-r--r--settings.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/settings.c b/settings.c
index 6dea5e74a..3de21068d 100644
--- a/settings.c
+++ b/settings.c
@@ -38,6 +38,7 @@
#include "newgrf.h"
#include "genworld.h"
#include "date.h"
+#include "rail.h"
#ifdef WITH_FREETYPE
#include "gfx.h"
#include "fontcache.h"
@@ -1320,6 +1321,7 @@ const SettingDesc _patch_settings[] = {
SDT_VAR(Patches, servint_aircraft, SLE_UINT16, 0,D0, 100, 5, 800, 0, STR_CONFIG_PATCHES_SERVINT_AIRCRAFT, InValidateDetailsWindow),
SDT_BOOL(Patches, no_servicing_if_no_breakdowns, 0, 0, false, STR_CONFIG_PATCHES_NOSERVICE, NULL),
SDT_BOOL(Patches, wagon_speed_limits, 0, 0, true, STR_CONFIG_PATCHES_WAGONSPEEDLIMITS, NULL),
+ SDT_CONDBOOL(Patches, disable_elrails, 38, SL_MAX_VERSION, 0, 0, false, STR_CONFIG_PATCHES_DISABLE_ELRAILS, SettingsDisableElrail),
/***************************************************************************/
/* Station section of the GUI-configure patches window */