diff options
author | rubidium <rubidium@openttd.org> | 2011-12-15 18:40:15 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-12-15 18:40:15 +0000 |
commit | 18d929aa21f42f292fd249e6d5feb6bf71ba93ae (patch) | |
tree | 5a26d0c7d569a26381b3b3afa83afeac3e315763 /src/script/api/script_road.hpp | |
parent | bb564bc34dd5db62d994eac10f88a81979a0f89c (diff) | |
download | openttd-18d929aa21f42f292fd249e6d5feb6bf71ba93ae.tar.xz |
(svn r23521) -Codechange: use the actual enum values from the 'core' in the API when they refer to the in-game values in the cases where that is possible and sensible
Diffstat (limited to 'src/script/api/script_road.hpp')
-rw-r--r-- | src/script/api/script_road.hpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/script/api/script_road.hpp b/src/script/api/script_road.hpp index d058b8a7c..b0a64b4b5 100644 --- a/src/script/api/script_road.hpp +++ b/src/script/api/script_road.hpp @@ -45,11 +45,12 @@ public: * Types of road known to the game. */ enum RoadType { - /* Values are important, as they represent the internal state of the game. */ - ROADTYPE_ROAD = 0, ///< Build road objects. - ROADTYPE_TRAM = 1, ///< Build tram objects. + /* Note: these values represent part of the in-game RoadType enum */ + ROADTYPE_ROAD = ::ROADTYPE_ROAD, ///< Build road objects. + ROADTYPE_TRAM = ::ROADTYPE_TRAM, ///< Build tram objects. - ROADTYPE_INVALID = -1, ///< Invalid RoadType. + /* Custom added value, only valid for this API */ + ROADTYPE_INVALID = -1, ///< Invalid RoadType. }; /** |