Make noclip only effect player (#3788)

This commit is contained in:
Garrett Cox 2024-01-06 01:51:48 +00:00 committed by GitHub
parent 6cb3a830bd
commit 37b2fc0745
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}