Merge branch 'master' into jgrpp
# Conflicts: # .github/workflows/release-linux.yml # src/base_consist.h # src/blitter/32bpp_optimized.cpp # src/blitter/32bpp_optimized.hpp # src/blitter/32bpp_sse2.hpp # src/blitter/8bpp_optimized.hpp # src/gfx_func.h # src/industry_cmd.cpp # src/industrytype.h # src/linkgraph/linkgraphjob.cpp # src/mixer.cpp # src/newgrf_callbacks.h # src/openttd.cpp # src/os/macosx/macos.mm # src/os/windows/win32.cpp # src/pathfinder/npf/npf.cpp # src/road_cmd.cpp # src/saveload/afterload.cpp # src/saveload/saveload.h # src/saveload/vehicle_sl.cpp # src/sound.cpp # src/spritecache.cpp # src/spriteloader/spriteloader.hpp # src/station_map.h # src/timetable_cmd.cpp # src/timetable_cmd.h # src/timetable_gui.cpp # src/town_cmd.cpp # src/vehicle_cmd.cpp # src/vehicle_gui_base.h # src/video/opengl.cpp # src/video/opengl.h # src/viewport.cpp
This commit is contained in:
@@ -45,7 +45,7 @@ RoadStop *RoadStop::GetNextRoadStop(const RoadVehicle *v) const
|
||||
/* The vehicle cannot go to this roadstop (different roadtype) */
|
||||
if (!HasTileAnyRoadType(rs->xy, v->compatible_roadtypes)) continue;
|
||||
/* The vehicle is articulated and can therefore not go to a standard road stop. */
|
||||
if (IsStandardRoadStopTile(rs->xy) && v->HasArticulatedPart()) continue;
|
||||
if (IsBayRoadStopTile(rs->xy) && v->HasArticulatedPart()) continue;
|
||||
|
||||
/* The vehicle can actually go to this road stop. So, return it! */
|
||||
return rs;
|
||||
@@ -312,7 +312,7 @@ void RoadStop::ChangeDriveThroughDisallowedRoadDirections(DisallowedRoadDirectio
|
||||
*/
|
||||
void RoadStop::Leave(RoadVehicle *rv)
|
||||
{
|
||||
if (IsStandardRoadStopTile(rv->tile)) {
|
||||
if (IsBayRoadStopTile(rv->tile)) {
|
||||
/* Vehicle is leaving a road stop tile, mark bay as free */
|
||||
this->FreeBay(HasBit(rv->state, RVS_USING_SECOND_BAY));
|
||||
this->SetEntranceBusy(false);
|
||||
@@ -329,7 +329,7 @@ void RoadStop::Leave(RoadVehicle *rv)
|
||||
*/
|
||||
bool RoadStop::Enter(RoadVehicle *rv)
|
||||
{
|
||||
if (IsStandardRoadStopTile(this->xy)) {
|
||||
if (IsBayRoadStopTile(this->xy)) {
|
||||
/* For normal (non drive-through) road stops
|
||||
* Check if station is busy or if there are no free bays or whether it is a articulated vehicle. */
|
||||
if (this->IsEntranceBusy() || !this->HasFreeBay() || rv->HasArticulatedPart()) return false;
|
||||
|
Reference in New Issue
Block a user