summaryrefslogtreecommitdiff
path: root/train_gui.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2005-09-24 13:56:39 +0000
committerpeter1138 <peter1138@openttd.org>2005-09-24 13:56:39 +0000
commitc02b1d555d36dbce487d2fc32fcef6e1cfd32964 (patch)
tree9c3c0f779426eef44c578e5eff9fd77c8efb5830 /train_gui.c
parent47de27ab69af44444e481bd867ee93ae3fd77eac (diff)
downloadopenttd-c02b1d555d36dbce487d2fc32fcef6e1cfd32964.tar.xz
(svn r2982) Newgrf: Added patch option for wagon speed limits. This is enabled by default.
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_gui.c b/train_gui.c
index 514d52183..3c02fa561 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -111,7 +111,7 @@ void DrawTrainWagonPurchaseInfo(int x, int y, EngineID engine_number)
y += 10;
/* Wagon speed limit, displayed if above zero */
- if (rvi->max_speed > 0) {
+ if (rvi->max_speed > 0 && _patches.wagon_speed_limits) {
SetDParam(0, rvi->max_speed * 10 >> 4);
DrawString(x,y, STR_PURCHASE_INFO_SPEED, 0);
y += 10;