Skip to content

Commit

Permalink
norm (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrie911 authored Mar 27, 2024
1 parent 9d1c7ff commit db11318
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/factories/sf64/ColPolyFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,16 @@ ExportResult SF64::ColPolyCodeExporter::Export(std::ostream &write, std::shared_
for(SF64::CollisionPoly poly : colpolys->mPolys) {
write << "\n" << fourSpaceTab;
write << "{ " << NUM(poly.tri, width) << ", ";
if (poly.unk_06 == 0) {
write << "0, ";
} else {
SPDLOG_INFO("SF64:COLPOLY alert: Nonzero value of unk_06");
write << "/* ALERT: NONZERO */ " << poly.unk_06 << ", ";
if (poly.unk_06 != 0) {
SPDLOG_ERROR("SF64:COLPOLY error: Nonzero value found in padding");
write << "/* ALERT: NONZERO PAD */ ";
}
write << NUM(poly.norm, 6) << ", ";
write << "{" << NUM(poly.norm, 6) << ", ";
if(poly.unk_0E != 0) {
SPDLOG_ERROR("SF64:COLPOLY error: Nonzero value found in padding");
write << "/* ALERT: NONZERO PAD */ ";
}
write << NUM(poly.dist, 9) << "}, ";
write << NUM(poly.dist, 9) << "} }, ";
}

write << "\n};\n";
Expand Down

0 comments on commit db11318

Please sign in to comment.