From 6af1bc119409b0311945065dc7c4bfdcde77fd38 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 12 Sep 2016 23:57:11 +1000 Subject: [PATCH] Use trace_dphitq3surfaceflags instead of pointcontents in fireBullet --- qcsrc/server/weapons/tracing.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/server/weapons/tracing.qc b/qcsrc/server/weapons/tracing.qc index 051a72548..3b7aa7bf8 100644 --- a/qcsrc/server/weapons/tracing.qc +++ b/qcsrc/server/weapons/tracing.qc @@ -399,7 +399,7 @@ void fireBullet(entity this, vector start, vector dir, float spread, float max_s entity hit = trace_ent; // When hitting sky, stop. - if (pointcontents(start) == CONTENT_SKY) + if (trace_dphitq3surfaceflags & Q3SURFACEFLAG_SKY) break; // can't use noimpact, as we need to pass through walls -- 2.39.2