From: TimePath Date: Sat, 31 Oct 2015 09:11:51 +0000 (+1100) Subject: Viewmodels: use current_player for colors X-Git-Tag: xonotic-v0.8.2~1601^2~22 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=48c7ba1cde907e7d008b375a683c91a3b8f46ca4;p=xonotic%2Fxonotic-data.pk3dir.git Viewmodels: use current_player for colors --- diff --git a/qcsrc/client/view.qc b/qcsrc/client/view.qc index 54fefa68e..94bc3263b 100644 --- a/qcsrc/client/view.qc +++ b/qcsrc/client/view.qc @@ -32,7 +32,7 @@ void viewmodel_draw(entity this) { - int c = stof(getplayerkeyvalue(player_localnum, "colors")); + int c = stof(getplayerkeyvalue(current_player, "colors")); vector g = colormapPaletteColor(c & 0x0F, true) * 2; for (entity e = this; e; e = e.weaponchild) {