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:
parent
e6c9a979c7
commit
100850ee93
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue