freebsd-ports/games/quake2lnx/files/patch-src_game_g__phys.c
Edwin Groothuis 8175bdc56a [UPDATE] games/quake2lnx: integrate with "quake2-data"
Changes:
	* Integrate with "quake2-data".
	* Add OPTIONS (21).
	* Clean-up (sort knobs alphabetically, etc.).
	* Automatically extract Rogue and Xatrix mission packs.
	* Remove ARCH from library names (gamei386.so -> game.so).
	  Also increases portability (the library name was manually
	  defined between #ifdefs checking the architecture, and a
	  #error at the end).
	* Change patch names (using "_" instead of "::"), and also some patches.

PR:		ports/87181
Submitted by:	Alejandro Pulver <alejandro@varnet.biz>
Approved by:	maintainer timeout
2005-11-17 10:51:28 +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);