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

@@ -298,7 +298,7 @@ void DrawRoadStopTile(int x, int y, RoadType roadtype, const RoadStopSpec *spec,
RoadStopDrawModes draw_mode;
if (spec->flags.Test(RoadStopSpecFlag::DrawModeRegister)) {
draw_mode = static_cast<RoadStopDrawMode>(object.GetRegister(0x100));
draw_mode = static_cast<RoadStopDrawModes>(object.GetRegister(0x100));
} else {
draw_mode = spec->draw_mode;
}