]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
warn about colorless sprites
authorRudolf Polzer <divverent@xonotic.org>
Sun, 19 Jun 2011 16:59:13 +0000 (18:59 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Sun, 19 Jun 2011 16:59:13 +0000 (18:59 +0200)
qcsrc/client/waypointsprites.qc

index d671d8451938acf36699a26738476d6f5a4e7241..fffc72485235682c8994514f595cf0a4af027013 100644 (file)
@@ -425,6 +425,11 @@ void Draw_WaypointSprite()
        vector rgb;
        rgb = self.teamradar_color;
        rgb = spritelookupcolor(spriteimage, rgb);
+       if(rgb == '0 0 0')
+       {
+               self.teamradar_color = '1 0 1';
+               print(sprintf("WARNING: sprite of name %s has no color, using pink so you notice it\n")); 
+       }
 
        if(time - floor(time) > 0.5)
                a *= spritelookupblinkvalue(spriteimage);