From 100850ee9369dfef1804b85717e129d1afb53601 Mon Sep 17 00:00:00 2001 From: Spoike Date: Thu, 20 May 2021 15:35:32 +0000 Subject: [PATCH] Apparently I got those ranges backwards. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5866 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_hlmdl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_hlmdl.c b/engine/gl/gl_hlmdl.c index bdbd0470a..ccb7fa14b 100644 --- a/engine/gl/gl_hlmdl.c +++ b/engine/gl/gl_hlmdl.c @@ -510,14 +510,14 @@ qboolean QDECL Mod_LoadHLModel (model_t *mod, void *buffer, size_t fsize) if (*in >= 256-96 && *in < 256-64) { //rows 11 and 12 are the player's upper colour (in the lower range) *out++ = 0xff000000; - *upper++ = 7+(*in-(256-96))*(256/32); + *upper++ = 255-(7+(*in-(256-96))*(256/32)); *lower++ = 0; } else if (*in >= 256-64 && *in < 256-32) { //rows 13 and 14 are the player's lower colour *out++ = 0xff000000; *upper++ = 0; - *lower++ = 7+(*in-(256-64))*(256/32); + *lower++ = 255-(7+(*in-(256-64))*(256/32)); } else { //regular and fullbright ranges... not that there is fullbrights on hlmdl