mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-24 04:34:16 +01:00
Codechange: Make RoadStopType an enum class. (#13340)
This commit is contained in:
@@ -207,7 +207,7 @@ void BaseStation::RemoveRoadStopTileData(TileIndex tile)
|
||||
*/
|
||||
RoadStop *Station::GetPrimaryRoadStop(const RoadVehicle *v) const
|
||||
{
|
||||
RoadStop *rs = this->GetPrimaryRoadStop(v->IsBus() ? ROADSTOP_BUS : ROADSTOP_TRUCK);
|
||||
RoadStop *rs = this->GetPrimaryRoadStop(v->IsBus() ? RoadStopType::Bus : RoadStopType::Truck);
|
||||
|
||||
for (; rs != nullptr; rs = rs->next) {
|
||||
/* The vehicle cannot go to this roadstop (different roadtype) */
|
||||
|
||||
Reference in New Issue
Block a user