Changeset - r22603:b929f09c5607
[Not reviewed]
master
0 1 0
peter1138 - 8 years ago 2017-03-20 18:16:23
peter1138@openttd.org
(svn r27814) -Change: Remove _roadveh_depot_exit_trackdir

_roadveh_depot_exit_trackdir was just a copy of
DiagDirToDiagTrackdir. (cirdan)
1 file changed with 1 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/roadveh_cmd.cpp
Show inline comments
 
@@ -73,12 +73,6 @@ static const Trackdir _road_reverse_tabl
 
	TRACKDIR_RVREV_NE, TRACKDIR_RVREV_SE, TRACKDIR_RVREV_SW, TRACKDIR_RVREV_NW
 
};
 

	
 
/** Converts the exit direction of a depot to trackdir the vehicle is going to drive to */
 
static const Trackdir _roadveh_depot_exit_trackdir[DIAGDIR_END] = {
 
	TRACKDIR_X_NE, TRACKDIR_Y_SE, TRACKDIR_X_SW, TRACKDIR_Y_NW
 
};
 

	
 

	
 
/**
 
 * Check whether a roadvehicle is a bus
 
 * @return true if bus
 
@@ -993,7 +987,7 @@ static bool RoadVehLeaveDepot(RoadVehicl
 
	DiagDirection dir = GetRoadDepotDirection(v->tile);
 
	v->direction = DiagDirToDir(dir);
 

	
 
	Trackdir tdir = _roadveh_depot_exit_trackdir[dir];
 
	Trackdir tdir = DiagDirToDiagTrackdir(dir);
 
	const RoadDriveEntry *rdp = _road_drive_data[v->roadtype][(_settings_game.vehicle.road_side << RVS_DRIVE_SIDE) + tdir];
 

	
 
	int x = TileX(v->tile) * TILE_SIZE + (rdp[RVC_DEPOT_START_FRAME].x & 0xF);
0 comments (0 inline, 0 general)