summaryrefslogtreecommitdiff
path: root/settings_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-11-27 23:11:56 +0000
committerpeter1138 <peter1138@openttd.org>2006-11-27 23:11:56 +0000
commit470c383738d84b9e2e1e202fec2633d10f6e1712 (patch)
treee4b1dd8ccb2c63d47646c0471b322b9ea585313a /settings_gui.c
parent45e7e61aa969764dc71ab1bbc574655e07a346a4 (diff)
downloadopenttd-470c383738d84b9e2e1e202fec2633d10f6e1712.tar.xz
(svn r7269) -Feature: Add freight trains patch option. This option is a multiplier for the weight of cargo on freight trains, to simulate longer heavier trains. The default value of 1 behaves as before.
Diffstat (limited to 'settings_gui.c')
-rw-r--r--settings_gui.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/settings_gui.c b/settings_gui.c
index ebdc58df6..996b9f340 100644
--- a/settings_gui.c
+++ b/settings_gui.c
@@ -647,6 +647,7 @@ static const char *_patches_vehicles[] = {
"no_servicing_if_no_breakdowns",
"wagon_speed_limits",
"disable_elrails",
+ "freight_trains",
};
typedef struct PatchEntry {
@@ -889,7 +890,7 @@ static const Widget _patches_selection_widgets[] = {
{ WWT_CLOSEBOX, RESIZE_NONE, 10, 0, 10, 0, 13, STR_00C5, STR_018B_CLOSE_WINDOW},
{ WWT_CAPTION, RESIZE_NONE, 10, 11, 369, 0, 13, STR_CONFIG_PATCHES_CAPTION, STR_018C_WINDOW_TITLE_DRAG_THIS},
{ WWT_PANEL, RESIZE_NONE, 10, 0, 369, 14, 41, 0x0, STR_NULL},
-{ WWT_PANEL, RESIZE_NONE, 10, 0, 369, 42, 360, 0x0, STR_NULL},
+{ WWT_PANEL, RESIZE_NONE, 10, 0, 369, 42, 370, 0x0, STR_NULL},
{ WWT_TEXTBTN, RESIZE_NONE, 3, 10, 96, 16, 27, STR_CONFIG_PATCHES_GUI, STR_NULL},
{ WWT_TEXTBTN, RESIZE_NONE, 3, 97, 183, 16, 27, STR_CONFIG_PATCHES_CONSTRUCTION, STR_NULL},
@@ -901,7 +902,7 @@ static const Widget _patches_selection_widgets[] = {
};
static const WindowDesc _patches_selection_desc = {
- WDP_CENTER, WDP_CENTER, 370, 361,
+ WDP_CENTER, WDP_CENTER, 370, 371,
WC_GAME_OPTIONS,0,
WDF_STD_TOOLTIPS | WDF_STD_BTN | WDF_DEF_WIDGET,
_patches_selection_widgets,