Apparently I got those ranges backwards.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5866 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2021-05-20 15:35:32 +00:00
parent e6c9a979c7
commit 100850ee93

View file

@ -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