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
@@ -459,7 +459,7 @@ bool GetIfNewStopsByType(RoadStopType rs, RoadType roadtype)
|
||||
{
|
||||
for (const auto &cls : RoadStopClass::Classes()) {
|
||||
/* Ignore the waypoint class. */
|
||||
if (cls.Index() == ROADSTOP_CLASS_WAYP) continue;
|
||||
if (IsWaypointClass(cls)) continue;
|
||||
/* Ignore the default class with only the default station. */
|
||||
if (cls.Index() == ROADSTOP_CLASS_DFLT && cls.GetSpecCount() == 1) continue;
|
||||
if (GetIfClassHasNewStopsByType(&cls, rs, roadtype)) return true;
|
||||
|
||||
Reference in New Issue
Block a user