Fix - Remove incorrect collision validation check (#1026)

A validation check in dynos_bin_col.cpp was wrong, which would block otherwise
well formed collision files. Since collisions are parsed as s16, if you reach
the bounds of s16 values will begin to overflow and the validation will catch
it.

To work around this overflow issue, you need to output groups of triangles and
vertices. However the existing check in ValidateColInit() would prevent this
workaround. Now there is essentially no hard-coded limit when it comes to vertex
and triangle counts of collision structs.

Co-authored-by: MysterD <myster@d>
This commit is contained in:
djoslin0 2025-11-21 11:21:14 -08:00 committed by GitHub
parent 7bc28a25d8
commit 0538204fc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -64,9 +64,6 @@ static void ValidateColSectionChange(GfxData* aGfxData, struct CollisionValidati
}
static void ValidateColInit(GfxData* aGfxData, struct CollisionValidationData& aColValData) {
if (aColValData.tokenIndex != 0) {
PrintDataError("COL_INIT found after the first token");
}
ValidateColSectionChange(aGfxData, aColValData, COL_SECTION_VTX);
}