summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpetrie911 <69443847+petrie911@users.noreply.github.com>2024-03-27 14:42:03 -0500
committerGitHub <noreply@github.com>2024-03-27 13:42:03 -0600
commitdb11318e5cbf915cf483395672b8409d2564dd98 (patch)
treec4f82e477ad3a0bc9ed6c514d89f0e65941890fc
parent9d1c7ff3ece44f7d9e90f2abbb6828b406389ae3 (diff)
norm (#55)
-rw-r--r--src/factories/sf64/ColPolyFactory.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/factories/sf64/ColPolyFactory.cpp b/src/factories/sf64/ColPolyFactory.cpp
index d4ecbfd..7ce4d1a 100644
--- a/src/factories/sf64/ColPolyFactory.cpp
+++ b/src/factories/sf64/ColPolyFactory.cpp
@@ -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";