From 61d8498b0a6b620644b59bdb218de24d2d54b136 Mon Sep 17 00:00:00 2001 From: Samual Lenks Date: Tue, 18 Feb 2014 21:40:25 -0500 Subject: [PATCH] Some cleanup --- qcsrc/client/particles.qc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/qcsrc/client/particles.qc b/qcsrc/client/particles.qc index 4f0068e19..92e13a31b 100644 --- a/qcsrc/client/particles.qc +++ b/qcsrc/client/particles.qc @@ -544,10 +544,10 @@ void Draw_ArcBeam() vector bottom = hitorigin - (thickdir * self.beam_thickness); R_BeginPolygon(self.beam_image, DRAWFLAG_NORMAL); // DRAWFLAG_ADDITIVE - R_PolygonVertex(top, '0 0.5 0' + ('0 0.5 0' * (self.beam_thickness / maxthickness)), self.beam_color, self.beam_alpha); - R_PolygonVertex(last_top, '0 0.5 0' + ('0 0.5 0' * (lastthickness / maxthickness)), self.beam_color, self.beam_alpha); - R_PolygonVertex(last_bottom, '0 0.5 0' * (1 - (lastthickness / maxthickness)), self.beam_color, self.beam_alpha); - R_PolygonVertex(bottom, '0 0.5 0' * (1 - (self.beam_thickness / maxthickness)), self.beam_color, self.beam_alpha); + R_PolygonVertex(top, '0 0.5 0' + ('0 0.5 0' * (self.beam_thickness / maxthickness)), self.beam_color, self.beam_alpha); + R_PolygonVertex(last_top, '0 0.5 0' + ('0 0.5 0' * (lastthickness / maxthickness)), self.beam_color, self.beam_alpha); + R_PolygonVertex(last_bottom, '0 0.5 0' * (1 - (lastthickness / maxthickness)), self.beam_color, self.beam_alpha); + R_PolygonVertex(bottom, '0 0.5 0' * (1 - (self.beam_thickness / maxthickness)), self.beam_color, self.beam_alpha); R_EndPolygon(); // check if we're going to proceed with drawing @@ -604,7 +604,6 @@ void Ent_ReadArcBeam(float isnew) self.origin_z = ReadCoord(); setorigin(self, self.origin); self.beam_usevieworigin = 0; - //WriteCoord(MSG_ENTITY, WEP_CVAR(arc, beam_range)); } else // infer the location from player location { -- 2.39.2