From: Mario Date: Thu, 6 Nov 2014 07:10:46 +0000 (+1100) Subject: Fix compile X-Git-Tag: xonotic-v0.8.0~152^2~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=24bd201d0b478b944b33d3205b72e63019955f9e;p=xonotic%2Fxonotic-data.pk3dir.git Fix compile --- diff --git a/qcsrc/client/miscfunctions.qc b/qcsrc/client/miscfunctions.qc index fbdbc45f3..8b674e782 100644 --- a/qcsrc/client/miscfunctions.qc +++ b/qcsrc/client/miscfunctions.qc @@ -589,6 +589,20 @@ float getplayeralpha(float pl) return 1; } +vector getcsqcplayercolor(float pl) +{ + entity e; + + e = CSQCModel_server2csqc(pl); + if(e) + { + if(e.colormap > 0) + return colormapPaletteColor(((e.colormap >= 1024) ? e.colormap : stof(getplayerkeyvalue(e.colormap - 1, "colors"))) & 0x0F, TRUE); + } + + return '1 1 1'; +} + float getplayerisdead(float pl) { entity e;