mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2026-04-26 12:01:43 +00:00
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:
parent
7bc28a25d8
commit
0538204fc3
1 changed files with 0 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue