summaryrefslogtreecommitdiff
path: root/soh/src/code
diff options
context:
space:
mode:
authorinspectredc <78732756+inspectredc@users.noreply.github.com>2024-04-07 22:28:20 +0100
committerGitHub <noreply@github.com>2024-04-07 17:28:20 -0400
commite163d5bc3d1e3a7978bf204a4d554f51f6324fb0 (patch)
tree72cd0e88cef5c1433301749c71c8f14386feb571 /soh/src/code
parent612da023f0f9da864c2830d2539e49b660ed2ff4 (diff)
Fix switch puzzle locking issues (#4027)
Diffstat (limited to 'soh/src/code')
-rw-r--r--soh/src/code/z_bgcheck.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_bgcheck.c b/soh/src/code/z_bgcheck.c
index 7c99e7ca2..064d59860 100644
--- a/soh/src/code/z_bgcheck.c
+++ b/soh/src/code/z_bgcheck.c
@@ -398,7 +398,7 @@ s32 CollisionPoly_LineVsPoly(CollisionPoly* poly, Vec3s* vtxList, Vec3f* posA, V
(poly->normal.x * posB->x + poly->normal.y * posB->y + poly->normal.z * posB->z) * COLPOLY_NORMAL_FRAC +
plane.originDist;
-#ifdef __WIIU__
+#if defined(__SWITCH__) || defined(__WIIU__)
// on some platforms this ends up as very small numbers due to rounding issues
if (IS_ZERO(planeDistA)) {
planeDistA = 0.0f;