36069b2
M Mirage, M Maui Wowie 2, M Maui Wowie - ddnet-mapswarn-pnglite-incompatible-images
key in the https://info2.ddnet.tw/info JSON, if the key is not there or
the JSON hasn't been obtained yet, the warning is disabled. Since the
JSON is cached across restarts, it'll be effective for initially loaded
images from the second start.
float TmpAngle = atan2f(m_Input.m_TargetY, m_Input.m_TargetX);
if(TmpAngle < -(pi / 2.0f))
{
m_Angle = (int)((TmpAngle + (2.0f * pi)) * 256.0f);
}
else
{
m_Angle = (int)(TmpAngle * 256.0f);
}
this creates values from ~ -402 < 0 < 1204
so it does not even use the complete 32 bit. If we would shift the calculations from 0 to 360° then we could use a lot more precission float TmpAngle = atan2f(m_Input.m_TargetY, m_Input.m_TargetX);
if(TmpAngle < -(pi / 2.0f))
{
m_Angle = (int)((TmpAngle + (2.0f * pi)) * 256.0f);
}
else
{
m_Angle = (int)(TmpAngle * 256.0f);
}
this creates values from ~ -402 < 0 < 1204
so it does not even use the complete 32 bit. If we would shift the calculations from 0 to 360° then we could use a lot more precission RecvTotal = RecvBytes + RecvPackets * 42;
do not know what the magix 42 isstd::format
is even cuterc++
#define ABCD 1 + 2
int foo = 36/ABCD; // foo is actually 38 and not 12
I didn't change engine/client/graphics_threaded/h as it is included in https://github.com/ddnet/ddnet/pull/5520