]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix latest fix
authorRudolf Polzer <divverent@alientrap.org>
Fri, 19 Nov 2010 21:28:53 +0000 (22:28 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 19 Nov 2010 21:28:53 +0000 (22:28 +0100)
qcsrc/server/extensions.qh
qcsrc/server/w_common.qc

index da45d6d4307125c42ae69e98f97b0b751e22a3f9..feb60217aa050b7d441dd5f897501e4cbd552f20 100644 (file)
@@ -1806,7 +1806,7 @@ float Q3SURFACEFLAG_LADDER = 8; // climbable surface
 float Q3SURFACEFLAG_NOIMPACT = 16; // projectiles should remove themselves on impact (this is set on sky)
 float Q3SURFACEFLAG_NOMARKS = 32; // projectiles should not leave marks, such as decals (this is set on sky)
 float Q3SURFACEFLAG_FLESH = 64; // projectiles should do a fleshy effect (blood?) on impact
-//float Q3SURFACEFLAG_NODRAW = 128; // compiler hint (not important to qc)
+float Q3SURFACEFLAG_NODRAW = 128; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_HINT = 256; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_SKIP = 512; // compiler hint (not important to qc)
 //float Q3SURFACEFLAG_NOLIGHTMAP = 1024; // compiler hint (not important to qc)
index b453918ce3e2bcb426052620edc9e134451f9cd9..320ffb7507e6173714af897ba43ab4ed917316bb 100644 (file)
@@ -322,9 +322,9 @@ void W_BallisticBullet_Touch (void)
        // matching shaders:
        //   common/weapclip (intended)
        //   common/noimpact (is supposed to eat projectiles, but is erased farther above)
-       if(trace_dphitq3surfaceflags
-               &  (Q3SURFACEFLAG_NONSOLID | Q3SURFACEFLAG_NODRAW | Q3SURFACEFLAG_TRANS)
-               == (                         Q3SURFACEFLAG_NODRAW | Q3SURFACEFLAG_TRANS))
+       if(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NODRAW)
+       if not(trace_dphitq3surfaceflags & Q3SURFACEFLAG_NONSOLID)
+       if not(trace_dphitcontents & DPCONTENTS_OPAQUE)
        {
                remove(self);
                return;