Duke4.net Forums: Noclip doesn't work properly - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Noclip doesn't work properly

User is offline   Lazy Dog 

#1

in r8265


1

#2

This is due to commit 8243, which (in part) addresses the bug described here: https://forums.duke4...lipped-through/

Easy fix:
Index: source/duke3d/src/player.cpp
===================================================================
--- source/duke3d/src/player.cpp	(revision 8280)
+++ source/duke3d/src/player.cpp	(working copy)
@@ -4919,7 +4919,8 @@
     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 == 0) 
+        pushmove(&pPlayer->pos, &pPlayer->cursectnum, pPlayer->clipdist - 1, (4L<<8), stepHeight, CLIPMASK0);
 
     if (pPlayer->one_eighty_count < 0)
     {

1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options