# HG changeset patch # User peter1138 # Date 2010-01-30 21:59:22 # Node ID 33ba803eeef2dee1acf18043afeb91e2d0d5b46a # Parent be0791dad1ac746ec60c8d41883342607521f0a5 (svn r18970) -Codechange: Increase number of possible rail types to 16. diff --git a/docs/landscape_grid.html b/docs/landscape_grid.html --- a/docs/landscape_grid.html +++ b/docs/landscape_grid.html @@ -91,7 +91,7 @@ the array so you can quickly see what is XXXX XXXX ~~~X XXXX OOOO XXXX OOOO OOOO - OOOO ~~XX + OOOO XXXX OOOO XXXX XXXX XXXX XXOO OOXX @@ -102,7 +102,7 @@ the array so you can quickly see what is -inherit- -inherit- OOOO XXXX XXXX XXXX - XXXX ~~XX + XXXX XXXX XXXX XXXX -inherit- XXOO OOXX @@ -113,7 +113,7 @@ the array so you can quickly see what is -inherit- -inherit- XXXX XXXX XXXX XXXX - OOOO ~~XX + OOOO XXXX OOOO XXXX XXOX OXXX XXOO OOXX @@ -136,7 +136,7 @@ the array so you can quickly see what is -inherit- -inherit- -inherit- - XXXX ~~XX + XXXX XXXX -inherit- XXXX OOOX XXXX XOXX @@ -146,7 +146,7 @@ the array so you can quickly see what is road depot -inherit- -inherit- - XXXX XXXX XXXX XXXX + -inherit- OOOO OOOO OOOO OOOO XXOO OOXX @@ -183,7 +183,7 @@ the array so you can quickly see what is XXXX XXXX ~~~X XXXX XXXX XXXX XXXX XXXX - XXXX ~~XX + XXXX XXXX XXXX XXXX XXXX XXXX OOXX XXXX @@ -308,7 +308,7 @@ the array so you can quickly see what is XXXX XXXX ~~~X XXXX OOOO OOOO OOOO OOOO - XXXX ~~XX + XXXX XXXX OOOO OOOO XOOX XXXX XXOO OOXX diff --git a/src/rail_type.h b/src/rail_type.h --- a/src/rail_type.h +++ b/src/rail_type.h @@ -27,7 +27,7 @@ enum RailType { RAILTYPE_ELECTRIC = 1, ///< Electric rails RAILTYPE_MONO = 2, ///< Monorail RAILTYPE_MAGLEV = 3, ///< Maglev - RAILTYPE_END, ///< Used for iterations + RAILTYPE_END = 16, ///< Used for iterations INVALID_RAILTYPE = 0xFF, ///< Flag for invalid railtype DEF_RAILTYPE_FIRST = RAILTYPE_END, ///< Default railtype: first available