summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-01-18 21:28:07 +0000
committerrubidium <rubidium@openttd.org>2011-01-18 21:28:07 +0000
commit6371b75bcc0789d4895e5c157237cbeaf332a99a (patch)
tree839d8ea502592470cb12a30a64eeb130dc62508a /src/rail_cmd.cpp
parent5f285916100bea2ee28ca3d8680f5bc2c99fa942 (diff)
downloadopenttd-6371b75bcc0789d4895e5c157237cbeaf332a99a.tar.xz
(svn r21841) -Feature: [NewGRF] Allow to define other railtypes that should be introduced if a particular rail type is introduced, e.g. to make sure slow rail is introduced when fast rail gets introduced
Diffstat (limited to 'src/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index bb77984d9..be056ed4b 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -97,6 +97,9 @@ RailType AllocateRailType(RailTypeLabel label)
/* Make us compatible with ourself. */
rti->powered_railtypes = (RailTypes)(1 << rt);
rti->compatible_railtypes = (RailTypes)(1 << rt);
+
+ /* We also introduce ourself. */
+ rti->introduces_railtypes = (RailTypes)(1 << rt);
return rt;
}
}