(svn r25890) -Codechange: define a smallstack for station IDs
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#define STATION_TYPE_H
|
||||
|
||||
#include "core/smallvec_type.hpp"
|
||||
#include "core/smallstack_type.hpp"
|
||||
#include "tilearea_type.h"
|
||||
#include <list>
|
||||
|
||||
@@ -28,6 +29,8 @@ struct Waypoint;
|
||||
static const StationID NEW_STATION = 0xFFFE;
|
||||
static const StationID INVALID_STATION = 0xFFFF;
|
||||
|
||||
typedef SmallStack<StationID, StationID, INVALID_STATION, 8, 0xFFFD> StationIDStack;
|
||||
|
||||
/** Station types */
|
||||
enum StationType {
|
||||
STATION_RAIL,
|
||||
|
||||
Reference in New Issue
Block a user