Change: [Script] Decouple RAILTYPE_INVALID from internal presentation. (#14630)

RAILTYPE_INVALID is now -1, which matches ROADTYPE_INVALID.
This commit is contained in:
Peter Nelson
2025-09-19 22:02:08 +01:00
committed by dP
parent 2ff2feeb6c
commit 10651bb638
3 changed files with 250 additions and 248 deletions

View File

@@ -44,9 +44,8 @@ public:
/**
* Types of rail known to the game.
*/
enum RailType : uint8_t {
/* Note: these values represent part of the in-game static values */
RAILTYPE_INVALID = ::INVALID_RAILTYPE, ///< Invalid RailType.
enum RailType {
RAILTYPE_INVALID = -1, ///< Invalid RailType.
};
/**