Changeset - r15754:17ebbbcdfe86
[Not reviewed]
master
0 1 0
rubidium - 14 years ago 2010-08-10 16:13:51
rubidium@openttd.org
(svn r20438) -Fix [FS#4022]: for docks "facing" north, i.e. having the watery part a the northern side, the joiner had an off-by-one to the north w.r.t. the station spread against the actual other (correct) building tools
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/dock_gui.cpp
Show inline comments
 
@@ -58,7 +58,12 @@ static void PlaceDocks_Dock(TileIndex ti
 

	
 
	/* tile is always the land tile, so need to evaluate _thd.pos */
 
	CommandContainer cmdcont = { tile, _ctrl_pressed, p2, CMD_BUILD_DOCK | CMD_MSG(STR_ERROR_CAN_T_BUILD_DOCK_HERE), CcBuildDocks, "" };
 
	ShowSelectStationIfNeeded(cmdcont, TileArea(tile, _thd.size.x / TILE_SIZE, _thd.size.y / TILE_SIZE));
 

	
 
	/* Determine the watery part of the dock. */
 
	DiagDirection dir = GetInclinedSlopeDirection(GetTileSlope(tile, NULL));
 
	TileIndex tile_to = (dir != INVALID_DIAGDIR ? TileAddByDiagDir(tile, ReverseDiagDir(dir)) : tile);
 

	
 
	ShowSelectStationIfNeeded(cmdcont, TileArea(tile, tile_to));
 
}
 

	
 
static void PlaceDocks_Depot(TileIndex tile)
0 comments (0 inline, 0 general)