draw projectiles using drawmask (faster)
authorRudolf Polzer <divverent@alientrap.org>
Fri, 15 Oct 2010 16:39:57 +0000 (18:39 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 15 Oct 2010 16:39:57 +0000 (18:39 +0200)
qcsrc/client/projectile.qc

index 39aabc4..7e44a72 100644 (file)
@@ -139,6 +139,8 @@ void Projectile_Draw()
        else
                Projectile_ResetTrail(trailorigin);
 
+       self.drawmask = 0;
+
        if(!drawn)
                return;
 
@@ -152,7 +154,7 @@ void Projectile_Draw()
                        break;
        }
 
-       R_AddEntity(self);
+       self.drawmask = DRAWMASK_NORMAL;
 }
 
 void loopsound(entity e, float ch, string samp, float vol, float attn)