mirror of https://github.com/OpenTTD/OpenTTD
(svn r12466) -Codechange: move DestinationID to a more logical location.
parent
cb96caa3d2
commit
450d234745
|
@ -32,14 +32,6 @@ typedef uint16 OrderID;
|
||||||
typedef uint16 SignID;
|
typedef uint16 SignID;
|
||||||
typedef uint16 GroupID;
|
typedef uint16 GroupID;
|
||||||
typedef uint16 EngineRenewID;
|
typedef uint16 EngineRenewID;
|
||||||
typedef uint16 DestinationID;
|
|
||||||
|
|
||||||
/* DestinationID must be at least as large as every these below, because it can
|
|
||||||
* be any of them
|
|
||||||
*/
|
|
||||||
assert_compile(sizeof(DestinationID) >= sizeof(DepotID));
|
|
||||||
assert_compile(sizeof(DestinationID) >= sizeof(WaypointID));
|
|
||||||
assert_compile(sizeof(DestinationID) >= sizeof(StationID));
|
|
||||||
|
|
||||||
enum GameModes {
|
enum GameModes {
|
||||||
GM_MENU,
|
GM_MENU,
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
#include "tile_type.h"
|
#include "tile_type.h"
|
||||||
#include "date_type.h"
|
#include "date_type.h"
|
||||||
|
|
||||||
|
typedef uint16 DestinationID;
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
INVALID_VEH_ORDER_ID = 0xFF,
|
INVALID_VEH_ORDER_ID = 0xFF,
|
||||||
};
|
};
|
||||||
|
|
|
@ -25,6 +25,13 @@
|
||||||
|
|
||||||
#include "table/strings.h"
|
#include "table/strings.h"
|
||||||
|
|
||||||
|
/* DestinationID must be at least as large as every these below, because it can
|
||||||
|
* be any of them
|
||||||
|
*/
|
||||||
|
assert_compile(sizeof(DestinationID) >= sizeof(DepotID));
|
||||||
|
assert_compile(sizeof(DestinationID) >= sizeof(WaypointID));
|
||||||
|
assert_compile(sizeof(DestinationID) >= sizeof(StationID));
|
||||||
|
|
||||||
TileIndex _backup_orders_tile;
|
TileIndex _backup_orders_tile;
|
||||||
BackuppedOrders _backup_orders_data;
|
BackuppedOrders _backup_orders_data;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue