diff options
author | tron <tron@openttd.org> | 2005-01-05 10:20:51 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-01-05 10:20:51 +0000 |
commit | 9294d33611c144e927dbb44501d1c23feaf32b31 (patch) | |
tree | c3074f2c94662a2f7f2f245b5006044d10826d9c | |
parent | e31da8532e8deb9daccd203de6d08166be0a9243 (diff) | |
download | openttd-9294d33611c144e927dbb44501d1c23feaf32b31.tar.xz |
(svn r1382) Make automatic placement of rails in front of train depots map size agnostic
-rw-r--r-- | rail_gui.c | 4 |
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]); |