opnsense-ports/games/quake2lnx/files/patch-src_game_g__phys.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

17 lines
436 B
C

--- src/game/g_phys.c.orig Tue Mar 15 22:15:11 2005
+++ src/game/g_phys.c Tue Mar 15 22:16:41 2005
@@ -356,7 +356,13 @@
mask = MASK_SOLID;
trace = gi.trace (start, ent->mins, ent->maxs, end, ent, mask);
-
+
+ if (trace.startsolid || trace.allsolid)
+ {
+ mask ^= CONTENTS_DEADMONSTER;
+ trace = gi.trace (start, ent->mins, ent->maxs, end, ent, mask);
+ }
+
VectorCopy (trace.endpos, ent->s.origin);
gi.linkentity (ent);