mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-25 07:29:10 +00:00
Codechange: make script and internal NEW_STATION have the same value
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
|
|
||||||
#include "script_text.hpp"
|
#include "script_text.hpp"
|
||||||
#include "script_date.hpp"
|
#include "script_date.hpp"
|
||||||
|
#include "../../station_type.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base class for stations and waypoints.
|
* Base class for stations and waypoints.
|
||||||
@@ -19,15 +20,9 @@
|
|||||||
*/
|
*/
|
||||||
class ScriptBaseStation : public ScriptObject {
|
class ScriptBaseStation : public ScriptObject {
|
||||||
public:
|
public:
|
||||||
/**
|
static const StationID STATION_NEW = ::NEW_STATION; ///< Build a new station
|
||||||
* Special station IDs for building adjacent/new stations when
|
static const StationID STATION_JOIN_ADJACENT = ::ADJACENT_STATION; ///< Join an neighbouring station if one exists
|
||||||
* the adjacent/distant join features are enabled.
|
static const StationID STATION_INVALID = ::INVALID_STATION; ///< Invalid station id.
|
||||||
*/
|
|
||||||
enum SpecialStationIDs {
|
|
||||||
STATION_NEW = 0xFFFD, ///< Build a new station
|
|
||||||
STATION_JOIN_ADJACENT = 0xFFFE, ///< Join an neighbouring station if one exists
|
|
||||||
STATION_INVALID = 0xFFFF, ///< Invalid station id.
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks whether the given basestation is valid and owned by you.
|
* Checks whether the given basestation is valid and owned by you.
|
||||||
|
@@ -22,7 +22,8 @@ struct RoadStop;
|
|||||||
struct StationSpec;
|
struct StationSpec;
|
||||||
struct Waypoint;
|
struct Waypoint;
|
||||||
|
|
||||||
static const StationID NEW_STATION = 0xFFFE;
|
static const StationID NEW_STATION = 0xFFFD;
|
||||||
|
static const StationID ADJACENT_STATION = 0xFFFE;
|
||||||
static const StationID INVALID_STATION = 0xFFFF;
|
static const StationID INVALID_STATION = 0xFFFF;
|
||||||
|
|
||||||
typedef SmallStack<StationID, StationID, INVALID_STATION, 8, 0xFFFD> StationIDStack;
|
typedef SmallStack<StationID, StationID, INVALID_STATION, 8, 0xFFFD> StationIDStack;
|
||||||
|
Reference in New Issue
Block a user