diff --git a/src/script/api/script_station.hpp b/src/script/api/script_station.hpp --- a/src/script/api/script_station.hpp +++ b/src/script/api/script_station.hpp @@ -14,6 +14,7 @@ #include "script_road.hpp" #include "script_basestation.hpp" +#include "../../station_type.h" /** * Class that handles all station related functions. @@ -42,13 +43,13 @@ public: * Type of stations known in the game. */ enum StationType { - /* Values are important, as they represent the internal state of the game. */ - STATION_TRAIN = 0x01, ///< Train station - STATION_TRUCK_STOP = 0x02, ///< Truck station - STATION_BUS_STOP = 0x04, ///< Bus station - STATION_AIRPORT = 0x08, ///< Airport - STATION_DOCK = 0x10, ///< Dock - STATION_ANY = 0x1F, ///< All station types + /* Note: these values represent part of the in-game StationFacility enum */ + STATION_TRAIN = ::FACIL_TRAIN, ///< Train station + STATION_TRUCK_STOP = ::FACIL_TRUCK_STOP, ///< Truck station + STATION_BUS_STOP = ::FACIL_BUS_STOP, ///< Bus station + STATION_AIRPORT = ::FACIL_AIRPORT, ///< Airport + STATION_DOCK = ::FACIL_DOCK, ///< Dock + STATION_ANY = STATION_TRAIN | STATION_TRUCK_STOP | STATION_BUS_STOP | STATION_AIRPORT | STATION_DOCK, ///< All station types }; /**