Skip to content

Commit c682777

Browse files
committed
Fix switch puzzle locking issues
1 parent 612da02 commit c682777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soh/src/code/z_bgcheck.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ s32 CollisionPoly_LineVsPoly(CollisionPoly* poly, Vec3s* vtxList, Vec3f* posA, V
398398
(poly->normal.x * posB->x + poly->normal.y * posB->y + poly->normal.z * posB->z) * COLPOLY_NORMAL_FRAC +
399399
plane.originDist;
400400

401-
#ifdef __WIIU__
401+
#if defined(__SWITCH__) || defined(__WIIU__)
402402
// on some platforms this ends up as very small numbers due to rounding issues
403403
if (IS_ZERO(planeDistA)) {
404404
planeDistA = 0.0f;

0 commit comments

Comments
 (0)