]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use trace_dphitq3surfaceflags instead of pointcontents in fireBullet
authorMario <mario@smbclan.net>
Mon, 12 Sep 2016 13:57:11 +0000 (23:57 +1000)
committerMario <mario@smbclan.net>
Mon, 12 Sep 2016 13:57:25 +0000 (23:57 +1000)
qcsrc/server/weapons/tracing.qc

index 051a725480088097d1bf0803b4a2e014834b06d7..3b7aa7bf893f7871bad4c5a2f54502c2a81aae8a 100644 (file)
@@ -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