]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Viewmodels: use current_player for colors
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 31 Oct 2015 09:11:51 +0000 (20:11 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 31 Oct 2015 09:11:51 +0000 (20:11 +1100)
qcsrc/client/view.qc

index 54fefa68e28e16fd251a18c1d8fe0232324c3267..94bc3263b7fa1de23c457b47b918eafec660409b 100644 (file)
@@ -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)
        {