mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Forgot I did this optimisation! Updated for the new colours.
This commit is contained in:
parent
862c256e92
commit
383ba1d738
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…
Add table
Reference in a new issue