summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2010-11-04 17:42:24 +0000
committerbelugas <belugas@openttd.org>2010-11-04 17:42:24 +0000
commitab9279b5a0e924fc3979c42fd11a04ea48f73124 (patch)
treea93e0250ca0ac310b840fd8e94b1d8efe26f98e7 /src
parentb1c95e12f12d2e444b507e600a7a99ed7ed04aba (diff)
downloadopenttd-ab9279b5a0e924fc3979c42fd11a04ea48f73124.tar.xz
(svn r21079) -Codechange: replace magic numbers with already defined constant ("inspired" by Hirundo's work)
Diffstat (limited to 'src')
-rw-r--r--src/tunnelbridge_cmd.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index 37cd75cb2..f7645b26f 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -1482,16 +1482,16 @@ static void ChangeTileOwner_TunnelBridge(TileIndex tile, Owner old_owner, Owner
}
-static const byte _tunnel_fractcoord_1[4] = {0x8E, 0x18, 0x81, 0xE8};
-static const byte _tunnel_fractcoord_2[4] = {0x81, 0x98, 0x87, 0x38};
-static const byte _tunnel_fractcoord_3[4] = {0x82, 0x88, 0x86, 0x48};
+static const byte _tunnel_fractcoord_1[DIAGDIR_END] = {0x8E, 0x18, 0x81, 0xE8};
+static const byte _tunnel_fractcoord_2[DIAGDIR_END] = {0x81, 0x98, 0x87, 0x38};
+static const byte _tunnel_fractcoord_3[DIAGDIR_END] = {0x82, 0x88, 0x86, 0x48};
-static const byte _road_exit_tunnel_frame[4] = {2, 7, 9, 4};
+static const byte _road_exit_tunnel_frame[DIAGDIR_END] = {2, 7, 9, 4};
-static const byte _tunnel_fractcoord_4[4] = {0x52, 0x85, 0x98, 0x29};
-static const byte _tunnel_fractcoord_5[4] = {0x92, 0x89, 0x58, 0x25};
-static const byte _tunnel_fractcoord_6[4] = {0x92, 0x89, 0x56, 0x45};
-static const byte _tunnel_fractcoord_7[4] = {0x52, 0x85, 0x96, 0x49};
+static const byte _tunnel_fractcoord_4[DIAGDIR_END] = {0x52, 0x85, 0x98, 0x29};
+static const byte _tunnel_fractcoord_5[DIAGDIR_END] = {0x92, 0x89, 0x58, 0x25};
+static const byte _tunnel_fractcoord_6[DIAGDIR_END] = {0x92, 0x89, 0x56, 0x45};
+static const byte _tunnel_fractcoord_7[DIAGDIR_END] = {0x52, 0x85, 0x96, 0x49};
static VehicleEnterTileStatus VehicleEnter_TunnelBridge(Vehicle *v, TileIndex tile, int x, int y)
{