From cf0a74a888aedc350d6fe005438cd60c6bb2f46c Mon Sep 17 00:00:00 2001 From: terminx Date: Sat, 7 Dec 2019 23:50:04 +0000 Subject: [PATCH] Fix noclip in Duke3d git-svn-id: https://svn.eduke32.com/eduke32@8368 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/player.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index 0b9aabd79..7499f6aba 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -4891,7 +4891,9 @@ void P_ProcessInput(int playerNum) pPlayer->oq16ang = pPlayer->q16ang; updatesector(pPlayer->pos.x, pPlayer->pos.y, &pPlayer->cursectnum); - pushmove(&pPlayer->pos, &pPlayer->cursectnum, pPlayer->clipdist - 1, (4L<<8), stepHeight, CLIPMASK0); + + if (!ud.noclip) + pushmove(&pPlayer->pos, &pPlayer->cursectnum, pPlayer->clipdist - 1, (4L<<8), stepHeight, CLIPMASK0); if (pPlayer->one_eighty_count < 0) {