From 6371b75bcc0789d4895e5c157237cbeaf332a99a Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 18 Jan 2011 21:28:07 +0000 Subject: (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 --- src/rail_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/rail_cmd.cpp') 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; } } -- cgit v1.2.3-54-g00ecf