summaryrefslogtreecommitdiff
path: root/src/code/sys_math3d.c
diff options
context:
space:
mode:
authorcadmic <cadmic24@gmail.com>2024-04-14 14:51:32 -0700
committerGitHub <noreply@github.com>2024-04-14 23:51:32 +0200
commitf643499462f8cf908ddf1ee77b5625ebaff2cf25 (patch)
tree852eb24ec8f3c8c507d779c4878be92cf5ff36c7 /src/code/sys_math3d.c
parenta94661054ed8e7ac895c3f4df07b8ac339fc3ce0 (diff)
Match retail BSS ordering (#1927)
* Match retail BSS ordering * Revert moving some global variables to headers * Adjust block numbers after header changes * Fix debug build * Overlay bss ordering * Fix BSS ordering after header changes * gc-eu-mq OK * Implement preprocessor for #pragma increment_block_number * Transfer usage comment from reencode.sh * Use temporary directory instead of temporary file * Move ColChkMassType back
Diffstat (limited to 'src/code/sys_math3d.c')
-rw-r--r--src/code/sys_math3d.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/code/sys_math3d.c b/src/code/sys_math3d.c
index 3e50249b1..a3b8ca2d6 100644
--- a/src/code/sys_math3d.c
+++ b/src/code/sys_math3d.c
@@ -1,6 +1,10 @@
#include "global.h"
#include "terminal.h"
+// For retail BSS ordering, the block number of cbf in Math3D_CylVsCylOverlapCenterDist
+// must be 0.
+#pragma increment_block_number 190
+
s32 Math3D_LineVsLineClosestTwoPoints(Vec3f* lineAPointA, Vec3f* lineAPointB, Vec3f* lineBPointA, Vec3f* lineBPointB,
Vec3f* lineAClosestToB, Vec3f* lineBClosestToA);
s32 Math3D_TriLineIntersect(Vec3f* v0, Vec3f* v1, Vec3f* v2, f32 nx, f32 ny, f32 nz, f32 originDist, Vec3f* linePointA,