Changeset - r896:70251b13b927
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-01-05 10:20:51
tron@openttd.org
(svn r1382) Make automatic placement of rails in front of train depots map size agnostic
1 file changed with 1 insertions and 3 deletions:
0 comments (0 inline, 0 general)
rail_gui.c
Show inline comments
 
@@ -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
 
		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]);
0 comments (0 inline, 0 general)