(svn r1382) Make automatic placement of rails in front of train depots map size agnostic
authortron
Wed, 05 Jan 2005 10:20:51 +0000
changeset 896 2e2a86b6c998
parent 895 4d8e39aba340
child 897 076a21cc614a
(svn r1382) Make automatic placement of rails in front of train depots map size agnostic
rail_gui.c
--- a/rail_gui.c	Wed Jan 05 09:59:45 2005 +0000
+++ b/rail_gui.c	Wed Jan 05 10:20:51 2005 +0000
@@ -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]);