







0xfffffffffffffffc thats bad i guess? Its a bit high ._.










static unsigned const short *spShort = nullptr;
spShort -= 1337;
printf("spShort=%p\n", spShort);











./scripts/fix_style.py could delete code if you kill it while its writing. Or is ctrl+c gracefully enough?










comp=-194 'client2: what??!?!?' 'client2: what??!?!?' any idea why the two single quoted string have a str_comp of -194? xddbg_msg("chiller", "comp=%d 'client2: what??!?!?' '%s'", str_comp_nocase("client2: what??!?!?", aBuf), aBuf);

str_endswith(aBuf, "?") returns 0._.

aBuf[str_length(aBuf) - 1] = '\0';







char aPuncts[][4] = {"?", "!", ".", ",", "¿", " "};
for(int i = 0; i < 10; i++) // strip up to 10 alternating punctuations
for(auto const &Punc : aPuncts)
while(str_endswith(aBuf, Punc)) // cut off punctuation and spaces
aBuf[str_length(aBuf) - str_length(Punc)] = '\0';


SDL_QuitSubSystem(SDL_INIT_JOYSTICK) to quit the entire subsystem, which will also close all joysticks correctly.
The engine input destructor is replaced with a Shutdown method so we can control when it is called, i.e. before calling SDL_Quit, which forcefully quits all subsystems.
CJoystick::Close is removed as we don't need to close joysticks manually anymore.
Closes #5452.













unsigned and therefor only 32bit? (edited)
NETMSG_SNAP identified by there part number.
There can be up to 64 parts. And in this line is checked if all parts were received
https://github.com/ddnet/ddnet/blob/cd8706a84ab928a37d11b2c9a18ca4e91c5007e5/src/engine/client/client.cpp#L1946
But I think the check is wrong, because m_SnapshotParts[Conn] is of type unsigned and as far as I know unsigned is only 32bit long. I think we should use uint64_t for ...


unsigned and therefor only 32bit? (edited)















































