diff options
| author | Garrett Cox <garrettjcox@gmail.com> | 2024-01-06 01:51:48 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-05 20:51:48 -0500 |
| commit | 37b2fc0745a149d039b0944ce4e35c0bddc6d1e8 (patch) | |
| tree | 32820f93c056fc60dc9e062f658985bf4295a993 /soh/src/code | |
| parent | 6cb3a830bdbfb09e228c073cdf61f8dc8f7b28d7 (diff) | |
Make noclip only effect player (#3788)
Diffstat (limited to 'soh/src/code')
| -rw-r--r-- | soh/src/code/z_bgcheck.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/soh/src/code/z_bgcheck.c b/soh/src/code/z_bgcheck.c index 4acc68e55..7c99e7ca2 100644 --- a/soh/src/code/z_bgcheck.c +++ b/soh/src/code/z_bgcheck.c @@ -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; } |
