]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix blinking for helpme too
authorRudolf Polzer <divverent@xonotic.org>
Tue, 21 Jun 2011 19:19:06 +0000 (21:19 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 21 Jun 2011 19:19:06 +0000 (21:19 +0200)
qcsrc/client/waypointsprites.qc

index 327ad0442d46688694013f1dacc0746141341d78..3e83e45bcae4d144c462050eac1c5dcf6f6242f4 100644 (file)
@@ -435,10 +435,13 @@ void Draw_WaypointSprite()
                print(sprintf("WARNING: sprite of name %s has no color, using pink so you notice it\n", spriteimage)); 
        }
 
-       if(self.helpme && time < self.helpme)
-               a *= SPRITE_HELPME_BLINK;
-       else if(time - floor(time) > 0.5)
-               a *= spritelookupblinkvalue(spriteimage);
+       if(time - floor(time) > 0.5)
+       {
+               if(self.helpme && time < self.helpme)
+                       a *= SPRITE_HELPME_BLINK;
+               else
+                       a *= spritelookupblinkvalue(spriteimage);
+       }
 
        if(a > 1)
        {