Add: NewGRF custom road waypoint support

This commit is contained in:
Jonathan G Rennison
2024-04-24 00:09:15 +01:00
committed by rubidium42
parent c35a5e5cb1
commit a43dacd988
5 changed files with 173 additions and 17 deletions

View File

@@ -4818,7 +4818,7 @@ static ChangeInfoResult RoadStopChangeInfo(uint id, int numinfo, int prop, ByteR
break;
case 0x0C: // The draw mode
rs->draw_mode = (RoadStopDrawMode)buf.ReadByte();
rs->draw_mode = static_cast<RoadStopDrawMode>(buf.ReadByte());
break;
case 0x0D: // Cargo types for random triggers
@@ -4843,7 +4843,7 @@ static ChangeInfoResult RoadStopChangeInfo(uint id, int numinfo, int prop, ByteR
break;
case 0x12: // General flags
rs->flags = (uint8_t)buf.ReadDWord(); // Future-proofing, size this as 4 bytes, but we only need one byte's worth of flags at present
rs->flags = (uint16_t)buf.ReadDWord(); // Future-proofing, size this as 4 bytes, but we only need two byte's worth of flags at present
break;
case 0x15: // Cost multipliers