summaryrefslogtreecommitdiff
path: root/src/railtypes.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-01-01 14:00:31 +0000
committerpeter1138 <peter1138@openttd.org>2008-01-01 14:00:31 +0000
commita967a7287f7553a2873750ad00ae99e6adfa47c5 (patch)
treeae310350119829d8ba97096972466ed0bae3b3ac /src/railtypes.h
parent7031358cff96d93b82843722f45255d432a9c088 (diff)
downloadopenttd-a967a7287f7553a2873750ad00ae99e6adfa47c5.tar.xz
(svn r11732) -Fix (r4150): elrail merge gave elrail, monorail & maglev unintended speed bonuses for curves, as the bonus was based on the railtype index. The bonus is now specified by a property of the railtype.
Diffstat (limited to 'src/railtypes.h')
-rw-r--r--src/railtypes.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/railtypes.h b/src/railtypes.h
index d456d66ac..db5e4a94d 100644
--- a/src/railtypes.h
+++ b/src/railtypes.h
@@ -57,6 +57,9 @@ RailtypeInfo _railtypes[] = {
/* custom ground offset */
0,
+
+ /* curve speed advantage (multiplier) */
+ 0,
},
/** Electrified railway */
@@ -110,6 +113,9 @@ RailtypeInfo _railtypes[] = {
/* custom ground offset */
0,
+
+ /* curve speed advantage (multiplier) */
+ 0,
},
/** Monorail */
@@ -159,6 +165,9 @@ RailtypeInfo _railtypes[] = {
/* custom ground offset */
1,
+
+ /* curve speed advantage (multiplier) */
+ 1,
},
/** Maglev */
@@ -208,6 +217,9 @@ RailtypeInfo _railtypes[] = {
/* custom ground offset */
2,
+
+ /* curve speed advantage (multiplier) */
+ 2,
},
};