aboutsummaryrefslogblamecommitdiff
path: root/games/quake2lnx/files/patch-src_game_g__phys.c
blob: d6684b01e7704d71a25f21df37a8605f7885131b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                               
--- 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);