Changeset - r8767:3a0af1ef8ea8
[Not reviewed]
master
0 3 0
rubidium - 16 years ago 2008-03-28 16:31:26
rubidium@openttd.org
(svn r12466) -Codechange: move DestinationID to a more logical location.
3 files changed with 9 insertions and 8 deletions:
0 comments (0 inline, 0 general)
src/openttd.h
Show inline comments
 
@@ -32,14 +32,6 @@ typedef uint16 OrderID;
 
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,
src/order.h
Show inline comments
 
@@ -12,6 +12,8 @@
 
#include "tile_type.h"
 
#include "date_type.h"
 

	
 
typedef uint16 DestinationID;
 

	
 
enum {
 
	INVALID_VEH_ORDER_ID = 0xFF,
 
};
src/order_cmd.cpp
Show inline comments
 
@@ -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;
 

	
0 comments (0 inline, 0 general)