summaryrefslogtreecommitdiff
path: root/dock_gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'dock_gui.c')
-rw-r--r--dock_gui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dock_gui.c b/dock_gui.c
index 4f5e47d43..da664345d 100644
--- a/dock_gui.c
+++ b/dock_gui.c
@@ -18,7 +18,7 @@
static void ShowBuildDockStationPicker(void);
static void ShowBuildDocksDepotPicker(void);
-static byte _ship_depot_direction;
+static Axis _ship_depot_direction;
void CcBuildDocks(bool success, TileIndex tile, uint32 p1, uint32 p2)
{
@@ -293,7 +293,7 @@ static void ShowBuildDockStationPicker(void)
static void UpdateDocksDirection(void)
{
- if (_ship_depot_direction != 0) {
+ if (_ship_depot_direction != AXIS_X) {
SetTileSelectSize(1, 2);
} else {
SetTileSelectSize(2, 1);
@@ -362,5 +362,5 @@ static void ShowBuildDocksDepotPicker(void)
void InitializeDockGui(void)
{
- _ship_depot_direction = 0;
+ _ship_depot_direction = AXIS_X;
}