summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLagoLunatic <LagoLunatic@users.noreply.github.com>2024-02-09 06:23:06 -0500
committerLagoLunatic <LagoLunatic@users.noreply.github.com>2024-02-09 06:23:06 -0500
commit2412c2c41be58fe455d4d63fd932c4ea0e0195dc (patch)
tree7892a36074812700931200a39da024d0478cbd45 /src
parentcac8575a940b6c1181c1eef3d8076ebde6b91729 (diff)
PSMulUnit01
Diffstat (limited to 'src')
-rw-r--r--src/JSystem/J3DGraphBase/J3DTransform.cpp5
-rw-r--r--src/d/actor/d_a_ib.cpp4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/JSystem/J3DGraphBase/J3DTransform.cpp b/src/JSystem/J3DGraphBase/J3DTransform.cpp
index a7da51f9..35ed5231 100644
--- a/src/JSystem/J3DGraphBase/J3DTransform.cpp
+++ b/src/JSystem/J3DGraphBase/J3DTransform.cpp
@@ -7,6 +7,11 @@
#include "JSystem/J3DGraphBase/J3DStruct.h"
#include "JSystem/JMath/JMATrigonometric.h"
+// This symbol needs to go in .data, but as it's only 8 bytes long, it would normally go in .sdata or .sdata2.
+// But if the array doesn't have a size specified in its declaration, and its definition comes *after* it gets used,
+// that forces it into .data instead because the size is unknown when it's used. Even const is ignored.
+f32 PSMulUnit01[2] = { 0.0f, -1.0f };
+
/* 802DA0A8-802DA0B0 .text __MTGQR7__FUl */
void __MTGQR7(register u32 v) {
asm {
diff --git a/src/d/actor/d_a_ib.cpp b/src/d/actor/d_a_ib.cpp
index e667a840..af3c0f06 100644
--- a/src/d/actor/d_a_ib.cpp
+++ b/src/d/actor/d_a_ib.cpp
@@ -480,8 +480,8 @@ static BOOL daIball_Execute(daIball_c* i_this) {
}
// This symbol needs to go in .data, but as it's only 7 bytes long, it would normally go in .sdata or .sdata2.
-// But if the variable is only defined *after* it gets used in daIball_c::CreateHeap that forces it into .data.
-// The size of the variable is ignored, and even whether it's const or not is ignored.
+// But if the array doesn't have a size specified in its declaration, and its definition comes *after* it gets used,
+// that forces it into .data instead because the size is unknown when it's used. Even const is ignored.
const char daIball_c::m_arcname[] = "Always";
dCcD_SrcCyl daIball_c::m_cyl_src = {