Fix #14433: Broken road stop drawing due to incorrect modes conversion. (#14434)

The mask was treated as a single RoadStopDrawMode instead of a RoadStopDrawModes bitset.
This commit is contained in:
Peter Nelson
2025-07-14 17:25:53 +01:00
committed by GitHub
parent fc924161ab
commit b2de1ff66f
3 changed files with 4 additions and 4 deletions

View File

@@ -3331,7 +3331,7 @@ draw_default_foundation:
auto result = GetRoadStopLayout(ti, stopspec, st, type, view, regs100);
if (result.has_value()) {
if (stopspec->flags.Test(RoadStopSpecFlag::DrawModeRegister)) {
stop_draw_mode = static_cast<RoadStopDrawMode>(regs100[0]);
stop_draw_mode = static_cast<RoadStopDrawModes>(regs100[0]);
}
if (type == StationType::RoadWaypoint && stop_draw_mode.Test(RoadStopDrawMode::WaypGround)) {
draw_ground = true;