1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Fix #11829: Glitches when using mismatched csg1/csg1i

This commit is contained in:
Michael Steenbeek
2021-03-17 13:40:45 +01:00
committed by GitHub
parent 4d152d97d2
commit e89c37e7ae
3 changed files with 3 additions and 1 deletions

View File

@@ -1000,7 +1000,7 @@ bool RCT1DataPresentAtLocation(const utf8* path)
bool CsgIsUsable(const rct_gx& csg)
{
return csg.header.num_entries == RCT1_NUM_LL_CSG_ENTRIES;
return csg.header.total_size == RCT1_LL_CSG1_DAT_FILE_SIZE && csg.header.num_entries == RCT1_NUM_LL_CSG_ENTRIES;
}
bool CsgAtLocationIsUsable(const utf8* path)