player_color_body
gives you the hex value250 / 360 * 255
= 177 teeworlds hue value. convert that to hex B1
then, assuming you want lowest brightness and highest sat, then the hex value should be B1FF00
, convert that to decimal 11665152
which is the value you want./360
part.player_color_body
c++
inline string
secret_function(int __val)
{
const bool __neg = __val < 0;
const unsigned __uval = __neg ? (unsigned)~__val + 1u : __val;
const auto __len = __detail::__to_chars_len(__uval);
string __str(__neg + __len, '-');
__detail::__to_chars_10_impl(&__str[__neg], __len, __uval);
return __str;
}
peak c++ beutifulnessthe reason variables are beginning with __ is macros. If user defines isNegative macro, it will get overwritten in the std, however user is forbidden to define macros starting with __ , as the wise people of reddit comment section suggested.
__to_chars_len
that made me think of it. Maybe it indeed is part of <charconv>
[2021-04-29 00:31:51][client]: dropped weird message 'invalid' (0), failed on '(type out of range)'