mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-20 10:52:41 +01:00
Codechange: Add functions to test if a station/roadstop class is a waypoint.
This is now checked by class label instead of by index.
This commit is contained in:
committed by
Peter Nelson
parent
9f8c9724be
commit
d2c8b476b5
@@ -1267,7 +1267,7 @@ public:
|
||||
|
||||
for (const auto &cls : RoadStopClass::Classes()) {
|
||||
/* Skip waypoints. */
|
||||
if (cls.Index() == ROADSTOP_CLASS_WAYP) continue;
|
||||
if (IsWaypointClass(cls)) continue;
|
||||
if (GetIfClassHasNewStopsByType(&cls, this->roadStopType, _cur_roadtype)) this->roadstop_classes.push_back(cls.Index());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user