Mercurial > hg > openttd
changeset 896:27c2fed3931b draft
(svn r1382) Make automatic placement of rails in front of train depots map size agnostic
author | tron <tron@openttd.org> |
---|---|
date | Wed, 05 Jan 2005 10:20:51 +0000 |
parents | 8a11c59aec4f |
children | dadaf913d412 |
files | rail_gui.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/rail_gui.c +++ b/rail_gui.c @@ -73,8 +73,6 @@ 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 @@ 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]);