From: Rudolf Polzer Date: Sun, 19 Jun 2011 16:59:13 +0000 (+0200) Subject: warn about colorless sprites X-Git-Tag: xonotic-v0.5.0~199^2~14^2~2^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=86a5cd78ed0f888c57cf0324b3725fd6d270636f;p=xonotic%2Fxonotic-data.pk3dir.git warn about colorless sprites --- diff --git a/qcsrc/client/waypointsprites.qc b/qcsrc/client/waypointsprites.qc index d671d8451..fffc72485 100644 --- a/qcsrc/client/waypointsprites.qc +++ b/qcsrc/client/waypointsprites.qc @@ -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);