summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rail_gui.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/rail_gui.c b/rail_gui.c
index 21bf28101..70e484a20 100644
--- a/rail_gui.c
+++ b/rail_gui.c
@@ -73,8 +73,6 @@ static void PlaceRail_AutoRail(uint tile)
VpStartPlaceSizing(tile, VPM_RAILDIRS);
}
-static int16 _place_depot_offs_xy[4] = { -1, 0x100, 1, -0x100};
-
static void PlaceExtraDepotRail(uint tile, uint16 extra)
{
byte b = _map5[tile];
@@ -100,7 +98,7 @@ void CcRailDepot(bool success, uint tile, uint32 p1, uint32 p2)
SndPlayTileFx(SND_20_SPLAT_2, tile);
ResetObjectToPlace();
- tile += _place_depot_offs_xy[dir];
+ tile += _tileoffs_by_dir[dir];
if (IS_TILETYPE(tile, MP_RAILWAY)) {
PlaceExtraDepotRail(tile, _place_depot_extra[dir]);