]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix something stupid
authorSamual Lenks <samual@xonotic.org>
Sat, 18 Aug 2012 23:44:54 +0000 (19:44 -0400)
committerSamual Lenks <samual@xonotic.org>
Sat, 18 Aug 2012 23:44:54 +0000 (19:44 -0400)
qcsrc/client/miscfunctions.qc
qcsrc/client/particles.qc

index 29ae559418c319c207a7e994e05f4fb5505ce35b..33c5e594de54b5571ac413d1ee095639779a9343 100644 (file)
@@ -600,7 +600,7 @@ vector getcsqcplayercolor(float pl)
 {
        entity e;
        
-       e = CSQCModel_server2csqc(pl + 1);
+       e = CSQCModel_server2csqc(pl);
        if(e)
        {
                if(e.colormap > 0)
index ac2f9fdea34dfeaf0308c630aee2e670db355f6e..14a5d9f57b68d0155d0a031627cc4a5b34017f68 100644 (file)
@@ -316,7 +316,7 @@ void Draw_Shockwave()
        
        vector deviation, angle;
 
-       vector sw_color = getcsqcplayercolor(self.sv_entnum - 1); // GetTeamRGB(GetPlayerColor(self.sv_entnum));
+       vector sw_color = getcsqcplayercolor(self.sv_entnum); // GetTeamRGB(GetPlayerColor(self.sv_entnum));
 
        vector first_min_end, prev_min_end, new_min_end;
        vector first_max_end, prev_max_end, new_max_end;