Skip to content

Commit

Permalink
Make noclip only effect player (#3788)
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjoecox authored Jan 6, 2024
1 parent 6cb3a83 commit 37b2fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion soh/src/code/z_bgcheck.c
Original file line number Diff line number Diff line change
Expand Up @@ -1902,7 +1902,7 @@ s32 BgCheck_CheckWallImpl(CollisionContext* colCtx, u16 xpFlags, Vec3f* posResul
s32 bgId2;
f32 nx, ny, nz; // unit normal of polygon

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

Expand Down

0 comments on commit 37b2fc0

Please sign in to comment.