From 5d8a3b3fa355c2380746fbca4dc140a29d7034fa Mon Sep 17 00:00:00 2001
From: Rudolf Polzer <divverent@alientrap.org>
Date: Fri, 15 Oct 2010 18:39:57 +0200
Subject: [PATCH] draw projectiles using drawmask (faster)

---
 qcsrc/client/projectile.qc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/qcsrc/client/projectile.qc b/qcsrc/client/projectile.qc
index 39aabc44a..7e44a726c 100644
--- a/qcsrc/client/projectile.qc
+++ b/qcsrc/client/projectile.qc
@@ -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)
-- 
2.39.5