1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Fix saving of banner frame colour

This commit is contained in:
Ted John
2019-07-30 18:27:50 +01:00
parent 1f9f48e054
commit b3531624a1

View File

@@ -1268,8 +1268,14 @@ void S6Exporter::ExportBanner(RCT12Banner& dst, const Banner& src)
dst.string_idx = *stringId;
}
dst.colour = src.colour;
dst.ride_index = src.ride_index;
if (src.flags & BANNER_FLAG_LINKED_TO_RIDE)
{
dst.ride_index = src.ride_index;
}
else
{
dst.colour = src.colour;
}
dst.text_colour = src.text_colour;
dst.x = src.position.x;
dst.y = src.position.y;