mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-22 10:51:54 +00:00
Forgot I did this optimisation! Updated for the new colours.
This commit is contained in:
parent
73116f2b60
commit
d2d6e67f48
1 changed files with 1 additions and 1 deletions
|
@ -1291,7 +1291,7 @@ UINT8 *V_GetStringColormap(INT32 colorflags)
|
|||
}
|
||||
#else // optimised
|
||||
colorflags = ((colorflags & V_CHARCOLORMASK) >> V_CHARCOLORSHIFT);
|
||||
if (!colorflags || colorflags > 8) // INT32 is signed, but V_CHARCOLORMASK is a very restrictive mask.
|
||||
if (!colorflags || colorflags > 15) // INT32 is signed, but V_CHARCOLORMASK is a very restrictive mask.
|
||||
return NULL;
|
||||
return (purplemap+((colorflags-1)<<8));
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue