diff options
author | rubidium <rubidium@openttd.org> | 2007-07-24 13:03:24 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-07-24 13:03:24 +0000 |
commit | 0d9a51de6ddc432e3d48bf5f2ff5027067273f2c (patch) | |
tree | 5cdf2bf8f653ee2e63246b1d6b2dd6cffe3a62f7 /src/player.h | |
parent | 01d08680e188b88a4c0fe8897a273606bfb6e7ce (diff) | |
download | openttd-0d9a51de6ddc432e3d48bf5f2ff5027067273f2c.tar.xz |
(svn r10672) -Codechange: typify some parameters/variables.
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 16 |
1 files changed, 8 insertions, 8 deletions
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; |