From 86a5cd78ed0f888c57cf0324b3725fd6d270636f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 19 Jun 2011 18:59:13 +0200 Subject: [PATCH] warn about colorless sprites --- qcsrc/client/waypointsprites.qc | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.2