Merge branch 'cargo_type_order' into jgrpp
# Conflicts: # src/pathfinder/yapf/yapf_common.hpp # src/saveload/extended_ver_sl.cpp # src/saveload/order_sl.cpp # src/saveload/station_sl.cpp # src/track_func.h
This commit is contained in:
@@ -74,7 +74,8 @@ struct CFollowTrackT
|
||||
|
||||
inline void Init(Owner o, RailTypes railtype_override, CPerformanceTimer *pPerf)
|
||||
{
|
||||
assert((!IsRoadTT() || m_veh != NULL) && (!IsRailTT() || railtype_override != INVALID_RAILTYPES));
|
||||
assert(!IsRoadTT() || m_veh != NULL);
|
||||
assert(!IsRailTT() || railtype_override != INVALID_RAILTYPES);
|
||||
m_veh_owner = o;
|
||||
m_pPerf = pPerf;
|
||||
/* don't worry, all is inlined so compiler should remove unnecessary initializations */
|
||||
@@ -228,8 +229,6 @@ protected:
|
||||
m_is_station = true;
|
||||
} else if (IsRoadTT() && IsRoadStopTile(m_new_tile)) {
|
||||
m_is_station = true;
|
||||
} else {
|
||||
m_is_station = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -242,7 +241,7 @@ protected:
|
||||
} else {
|
||||
m_new_td_bits = TrackStatusToTrackdirBits(GetTileTrackStatus(m_new_tile, TT(), IsRoadTT() ? RoadVehicle::From(m_veh)->compatible_roadtypes : 0));
|
||||
|
||||
if (IsTram() && m_new_td_bits == 0) {
|
||||
if (IsTram() && m_new_td_bits == TRACKDIR_BIT_NONE) {
|
||||
/* GetTileTrackStatus() returns 0 for single tram bits.
|
||||
* As we cannot change it there (easily) without breaking something, change it here */
|
||||
switch (GetSingleTramBit(m_new_tile)) {
|
||||
|
||||
Reference in New Issue
Block a user