From: Mario Date: Mon, 12 Sep 2016 13:57:11 +0000 (+1000) Subject: Use trace_dphitq3surfaceflags instead of pointcontents in fireBullet X-Git-Tag: xonotic-v0.8.2~594 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=6af1bc119409b0311945065dc7c4bfdcde77fd38;p=xonotic%2Fxonotic-data.pk3dir.git Use trace_dphitq3surfaceflags instead of pointcontents in fireBullet --- 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