summaryrefslogtreecommitdiff
path: root/newgrf.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
commit5dcb1e34fd90dc9a39e638db61165c7163a41db2 (patch)
tree9c3c0f779426eef44c578e5eff9fd77c8efb5830 /newgrf.c
parent73d3667dc3aadfaa9061b47b46e653ee3fab13d6 (diff)
downloadopenttd-5dcb1e34fd90dc9a39e638db61165c7163a41db2.tar.xz
(svn r2982) Newgrf: Added patch option for wagon speed limits. This is enabled by default.
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/newgrf.c b/newgrf.c
index 60ade0192..99d9fdc89 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2187,7 +2187,8 @@ static void InitializeGRFSpecial(void)
_ttdpatch_flags[2] = (1 << 0x0D) /* buildonslopes */
| (1 << 0x16) /* canals */
- | (1 << 0x17); /* newstartyear */
+ | (1 << 0x17) /* newstartyear */
+ | (_patches.wagon_speed_limits ? (1 << 0x1D) : 0); /* wagonspeedlimits */
}
static void InitNewGRFFile(const char* filename, int sprite_offset)