From b4f931f75f5d87fc7844e00eab7d7b99eceb3622 Mon Sep 17 00:00:00 2001 From: LagoLunatic Date: Sun, 21 Dec 2025 19:43:06 -0500 Subject: Miscellaneous data fixes (#2983) * Replace bss lbl_ with init$0000 * Rename l_HIOInit to hio_set The name is excluded from TP's weird maps, but hio_set is the name they used in TWW's maps. * Fix a couple more init$ names * Fix nbomb missing some bss * Fix camera localstatics having wrong name * Rename l_initHIO to hio_set * A couple manual fixes * Rename hioInit to hio_set * Couple more manual fixes * Fix d_a_npc_cd2 data and function order * More data fixes * Fix inconsistent hex vs decimal --- src/d/d_camera.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/d/d_camera.cpp') diff --git a/src/d/d_camera.cpp b/src/d/d_camera.cpp index c397cf96a0..af1d6d38c1 100644 --- a/src/d/d_camera.cpp +++ b/src/d/d_camera.cpp @@ -7450,8 +7450,8 @@ bool dCamera_c::railCamera(s32 param_0) { cSGlobe eyeFromCenter = bestEyePos - mViewCache.mCenter; cSAngle unkAngle1 = eyeFromCenter.U() - mViewCache.mDirection.U(); - static cSAngle yawSnapThreshold = 120.0f; - if (unkAngle1.Abs() > yawSnapThreshold) { + static cSAngle _120 = 120.0f; + if (unkAngle1.Abs() > _120) { setUSOAngle(); } @@ -7681,8 +7681,8 @@ bool dCamera_c::paraRailCamera(s32 param_0) { cSGlobe cStack_260 = paraRail->field_0x10 - mViewCache.mCenter; cSAngle acStack_2cc = cStack_260.U() - mViewCache.mDirection.U(); - static cSAngle paraRailCamera = 120.0f; - if (acStack_2cc.Abs() > paraRailCamera) { + static cSAngle _120 = 120.0f; + if (acStack_2cc.Abs() > _120) { setUSOAngle(); } -- cgit v1.2.3