NETMSG_REDIRECT
net message in your code, but maybe one should be added?void CServer::RedirectClient(int ClientID, int Port, bool Verbose)
int a = 5;
if(a != -1 && (int b = 2))
{
}
why does this throw a syntax error?if(int b = 2)
if(int a = 4)
is fineint a = 5;
if (auto [b] = fooBar(); a != -1 && b != 0)
{
}
to assign value to b and then check if b != 0) or smthint a = 5;
if (auto [b] = fooBar(); a != -1 && b != 0)
{
}
to assign value to b and then check if b != 0) or smth simple:
int a = 5;
float b = 3.14;
char c = 'A';
complex:
int arr[] = {1, 2, 3};
simple:
int a = 5;
float b = 3.14;
char c = 'A';
complex:
int arr[] = {1, 2, 3};
sv_motd
and you can also use non important broadcast that will not overwrite important broadcasts in ddnet server codehammer_duration
with a value above 1.25f
, m_HookTick
becomes negative. Which leads to 0.7 clients dropping the CNetObj_CharacterCore
message, because it only accepts values between 0
and int_max
. So, I just decided to clamp it at 0 if it's negative when sending it to 0.7 clients. Closes #3915
https://github.com/ddnet/ddnet/assets/141338449/2fa8986a-94aa-41ab-b65d-57110166627a
ddnet://host:port
(edited)simple:
int a = 5;
float b = 3.14;
char c = 'A';
complex:
int arr[] = {1, 2, 3};