forked from mirror/OpenTTD
(svn r6353) -Codechange: Make DestinationID a typedef of uin16, which is as large as any type of destinataion (StationID, DepotID, WaypointID) it can hold
DestinationID being a union of these types is just hassle without benefit and cannot be handled correctly everywhere because of local lack of information
This commit is contained in:
@@ -85,8 +85,8 @@ public:
|
||||
void SetDestination(Vehicle* v)
|
||||
{
|
||||
if (v->current_order.type == OT_GOTO_STATION) {
|
||||
m_destTile = CalcStationCenterTile(v->current_order.dest.station);
|
||||
m_dest_station_id = v->current_order.dest.station;
|
||||
m_destTile = CalcStationCenterTile(v->current_order.dest);
|
||||
m_dest_station_id = v->current_order.dest;
|
||||
m_destTrackdirs = INVALID_TRACKDIR_BIT;
|
||||
} else {
|
||||
m_destTile = v->dest_tile;
|
||||
|
Reference in New Issue
Block a user