From 9c9fc1a79ef08d1c3822bc7a4a1373d84dbfa70b Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 24 Jul 2007 13:03:24 +0000 Subject: (svn r10672) -Codechange: typify some parameters/variables. --- src/player.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/player.h') diff --git a/src/player.h b/src/player.h index 45a7a4518..70bf94d84 100644 --- a/src/player.h +++ b/src/player.h @@ -53,13 +53,13 @@ struct PlayerAI { TileIndex start_tile_a; TileIndex cur_tile_a; - byte cur_dir_a; - byte start_dir_a; + DiagDirectionByte cur_dir_a; + DiagDirectionByte start_dir_a; TileIndex start_tile_b; TileIndex cur_tile_b; - byte cur_dir_b; - byte start_dir_b; + DiagDirectionByte cur_dir_b; + DiagDirectionByte start_dir_b; Vehicle *cur_veh; ///< only used by some states @@ -77,8 +77,8 @@ struct Ai_PathFinderInfo { TileIndex start_tile_br; ///< br = bottom-right TileIndex end_tile_tl; ///< tl = top-left TileIndex end_tile_br; ///< br = bottom-right - byte start_direction; ///< 0 to 3 or AI_PATHFINDER_NO_DIRECTION - byte end_direction; ///< 0 to 3 or AI_PATHFINDER_NO_DIRECTION + DiagDirection start_direction; ///< 0 to 3 or AI_PATHFINDER_NO_DIRECTION + DiagDirection end_direction; ///< 0 to 3 or AI_PATHFINDER_NO_DIRECTION TileIndex route[500]; byte route_extra[500]; ///< Some extra information about the route like bridge/tunnel @@ -127,8 +127,8 @@ struct PlayerAiNew { TileIndex from_tile; TileIndex to_tile; - byte from_direction; - byte to_direction; + DiagDirectionByte from_direction; + DiagDirectionByte to_direction; bool from_deliver; ///< True if this is the station that GIVES cargo bool to_deliver; -- cgit v1.2.3-54-g00ecf