]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Viewmodels: fix white
authorTimePath <andrew.hardaker1995@gmail.com>
Mon, 30 Nov 2015 10:57:47 +0000 (21:57 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Mon, 30 Nov 2015 10:57:47 +0000 (21:57 +1100)
qcsrc/client/view.qc

index 4714919b958df7e5252898751d9c86c1312ce814..f483fd50a59574cdad5d3b4366022d61ab4afbd0 100644 (file)
@@ -286,7 +286,7 @@ void viewmodel_draw(entity this)
        {
                e.drawmask = mask;
                e.alpha = a;
-               e.colormap = c;
+               e.colormap = 256 + c;  // colormap == 0 is black, c == 0 is white
                e.glowmod = g;
                e.csqcmodel_effects = fx;
                WITH(entity, self, e, CSQCModel_Effects_Apply());