From 70fb58031180d4822736f93d74bc8651b185d41d Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Sun, 19 May 2024 09:53:18 -0400 Subject: [PATCH] Re-enable DynOS Vtx rounding --- data/dynos_bin_vtx.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/data/dynos_bin_vtx.cpp b/data/dynos_bin_vtx.cpp index 79e557e1..ad9bf41a 100644 --- a/data/dynos_bin_vtx.cpp +++ b/data/dynos_bin_vtx.cpp @@ -8,15 +8,15 @@ extern "C" { #define F32VTX_SENTINEL_2 0x5854 static inline bool ShouldUseF32Vtx(DataNode* aNode) { - // for (u32 i = 0; i != aNode->mSize; ++i) { - // for (u32 j = 0; j != 3; ++j) { - // if (aNode->mData[i].n.ob[j] < -0x7FFF || - // aNode->mData[i].n.ob[j] > +0x7FFF) { - // return true; - // } - // } - // } - return true; + for (u32 i = 0; i != aNode->mSize; ++i) { + for (u32 j = 0; j != 3; ++j) { + if (aNode->mData[i].n.ob[j] < -0x7FFF || + aNode->mData[i].n.ob[j] > +0x7FFF) { + return true; + } + } + } + return false; } static inline bool IsUsingF32Vtx(Vec3f ob) {