summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-24 13:03:24 +0000
committerrubidium <rubidium@openttd.org>2007-07-24 13:03:24 +0000
commit9c9fc1a79ef08d1c3822bc7a4a1373d84dbfa70b (patch)
tree5cdf2bf8f653ee2e63246b1d6b2dd6cffe3a62f7 /src/player.h
parente66ab3b6f1343968730b9a7069376f5408fb6d4d (diff)
downloadopenttd-9c9fc1a79ef08d1c3822bc7a4a1373d84dbfa70b.tar.xz
(svn r10672) -Codechange: typify some parameters/variables.
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h16
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;