freebsd-ports/games/quake2-source/files/patch-src_game_g__phys.c
Edwin Groothuis 7e4cbdf713 [NEW PORT] games/quake2-source - Quake II game source
Quake II game source.

	This port installs the Quake II game source, together with
	BSD Makefiles, for building modifications. It can also
	install the Capture the Flag mod, Rogue and Xatrix game
	source.

PR:		ports/86737
Submitted by:	Alejandro Pulver <alejandro@varnet.biz>
2005-10-16 05:58:42 +00: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);