This commit is contained in:
Aerll 2019-12-08 20:08:00 +01:00 committed by GitHub
parent 7d6ad9fca5
commit ff685ac1e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ ColorHSLA CConsole::CResult::GetColor(unsigned Index, bool Light)
const char *pStr = m_apArgs[Index];
if(str_isallnum(pStr) || ((pStr[0] == '-' || pStr[0] == '+') && str_isallnum(pStr+1))) // Teeworlds Color (Packed HSL)
{
hsl = ColorHSLA(str_toint(pStr), true);
hsl = ColorHSLA(str_toulong_base(pStr, 10), true);
}
else if(*pStr == '$') // Hex RGB
{