(svn r21842) -Feature [FS#4393]: [NewGRF] Introduction dates/required types for rail types; e.g. introduce a particular rail type in 1960 (or when a vehicle using it is introduced), but also allow limiting its introduction to only happen when the required railtypes are available

This commit is contained in:
rubidium
2011-01-18 21:30:59 +00:00
parent 6371b75bcc
commit b8c9988d9f
6 changed files with 135 additions and 3 deletions

View File

@@ -95,6 +95,12 @@ static const RailtypeInfo _original_railtypes[] = {
/* map colour */
0x0A,
/* introduction date */
INVALID_DATE,
/* railtypes required for this to be introduced */
RAILTYPES_NONE,
/* introduction rail types */
RAILTYPES_RAIL,
@@ -181,6 +187,12 @@ static const RailtypeInfo _original_railtypes[] = {
/* map colour */
0x0A,
/* introduction date */
INVALID_DATE,
/* railtypes required for this to be introduced */
RAILTYPES_NONE,
/* introduction rail types */
RAILTYPES_ELECTRIC,
@@ -263,6 +275,12 @@ static const RailtypeInfo _original_railtypes[] = {
/* map colour */
0x0A,
/* introduction date */
INVALID_DATE,
/* railtypes required for this to be introduced */
RAILTYPES_NONE,
/* introduction rail types */
RAILTYPES_MONO,
@@ -345,6 +363,12 @@ static const RailtypeInfo _original_railtypes[] = {
/* map colour */
0x0A,
/* introduction date */
INVALID_DATE,
/* railtypes required for this to be introduced */
RAILTYPES_NONE,
/* introduction rail types */
RAILTYPES_MAGLEV,