summaryrefslogtreecommitdiff
path: root/src/autoreplace_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-11-14 12:50:38 +0000
committerrubidium <rubidium@openttd.org>2009-11-14 12:50:38 +0000
commitd41302c310570721203d451821a99ed8d9d3d2ee (patch)
tree577ed854cf6db2d2342a2cc001ff79d6486404d5 /src/autoreplace_gui.cpp
parent629b7fcfe54eb918ea53f063da2d1979da7ea1c4 (diff)
downloadopenttd-d41302c310570721203d451821a99ed8d9d3d2ee.tar.xz
(svn r18071) -Codechange: remove the need for {SKIP} in the autoreplace window + strings
Diffstat (limited to 'src/autoreplace_gui.cpp')
-rw-r--r--src/autoreplace_gui.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index 3d971350a..7441db8fb 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -252,9 +252,9 @@ public:
case RVW_WIDGET_TRAIN_WAGONREMOVE_TOGGLE: {
StringID str = this->GetWidget<NWidgetCore>(widget)->widget_data;
- SetDParam(1, STR_CONFIG_SETTING_ON);
+ SetDParam(0, STR_CONFIG_SETTING_ON);
Dimension d = GetStringBoundingBox(str);
- SetDParam(1, STR_CONFIG_SETTING_OFF);
+ SetDParam(0, STR_CONFIG_SETTING_OFF);
d = maxdim(d, GetStringBoundingBox(str));
d.width += padding.width;
d.height += padding.height;
@@ -264,9 +264,9 @@ public:
case RVW_WIDGET_TRAIN_ENGINEWAGON_TOGGLE: {
StringID str = this->GetWidget<NWidgetCore>(widget)->widget_data;
- SetDParam(2, STR_REPLACE_ENGINES);
+ SetDParam(0, STR_REPLACE_ENGINES);
Dimension d = GetStringBoundingBox(str);
- SetDParam(2, STR_REPLACE_WAGONS);
+ SetDParam(0, STR_REPLACE_WAGONS);
d = maxdim(d, GetStringBoundingBox(str));
d.width += padding.width;
d.height += padding.height;
@@ -296,12 +296,12 @@ public:
case RVW_WIDGET_TRAIN_WAGONREMOVE_TOGGLE: {
const Company *c = Company::Get(_local_company);
- SetDParam(1, c->settings.renew_keep_length ? STR_CONFIG_SETTING_ON : STR_CONFIG_SETTING_OFF);
+ SetDParam(0, c->settings.renew_keep_length ? STR_CONFIG_SETTING_ON : STR_CONFIG_SETTING_OFF);
break;
}
case RVW_WIDGET_TRAIN_ENGINEWAGON_TOGGLE:
- SetDParam(2, this->replace_engines ? STR_REPLACE_ENGINES : STR_REPLACE_WAGONS);
+ SetDParam(0, this->replace_engines ? STR_REPLACE_ENGINES : STR_REPLACE_WAGONS);
break;
}
}