projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0091f9
)
warn about colorless sprites
author
Rudolf Polzer <divverent@xonotic.org>
Sun, 19 Jun 2011 16:59:13 +0000
(18:59 +0200)
committer
Rudolf Polzer <divverent@xonotic.org>
Sun, 19 Jun 2011 16:59:13 +0000
(18:59 +0200)
qcsrc/client/waypointsprites.qc
patch
|
blob
|
history
diff --git
a/qcsrc/client/waypointsprites.qc
b/qcsrc/client/waypointsprites.qc
index d671d8451938acf36699a26738476d6f5a4e7241..fffc72485235682c8994514f595cf0a4af027013 100644
(file)
--- 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);