# HG changeset patch # User rubidium # Date 1206721886 0 # Node ID 5b36ebf55150446ca121bf4d0b44de454fb9ffc1 # Parent 5faeb5b4d64acf7633b0cefbf3a4e054c1635a50 (svn r12466) -Codechange: move DestinationID to a more logical location. diff -r 5faeb5b4d64a -r 5b36ebf55150 src/openttd.h --- a/src/openttd.h Fri Mar 28 11:09:14 2008 +0000 +++ b/src/openttd.h Fri Mar 28 16:31:26 2008 +0000 @@ -32,14 +32,6 @@ typedef uint16 SignID; typedef uint16 GroupID; 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 { GM_MENU, diff -r 5faeb5b4d64a -r 5b36ebf55150 src/order.h --- a/src/order.h Fri Mar 28 11:09:14 2008 +0000 +++ b/src/order.h Fri Mar 28 16:31:26 2008 +0000 @@ -12,6 +12,8 @@ #include "tile_type.h" #include "date_type.h" +typedef uint16 DestinationID; + enum { INVALID_VEH_ORDER_ID = 0xFF, }; diff -r 5faeb5b4d64a -r 5b36ebf55150 src/order_cmd.cpp --- a/src/order_cmd.cpp Fri Mar 28 11:09:14 2008 +0000 +++ b/src/order_cmd.cpp Fri Mar 28 16:31:26 2008 +0000 @@ -25,6 +25,13 @@ #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; BackuppedOrders _backup_orders_data;