Skip to content

Commit fb567be

Browse files
committed
Make noclip only effect player
1 parent 1699eea commit fb567be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soh/src/code/z_bgcheck.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1902,7 +1902,7 @@ s32 BgCheck_CheckWallImpl(CollisionContext* colCtx, u16 xpFlags, Vec3f* posResul
19021902
s32 bgId2;
19031903
f32 nx, ny, nz; // unit normal of polygon
19041904

1905-
if (CVarGetInteger("gNoClip", 0) != 0) {
1905+
if (CVarGetInteger("gNoClip", 0) && actor != NULL && actor->id == ACTOR_PLAYER) {
19061906
return false;
19071907
}
19081908

0 commit comments

Comments
 (0)