if(v.empty())
return;
int Index = 0;
while(1)
Index = ++Index % v.size();
warning: operation on ‘Index’ may be undefined [-Wsequence-point]
155 | Index = ++Index % v.size();
if(v.empty())
return;
int Index = 0;
while(1)
Index = ++Index % v.size();
warning: operation on ‘Index’ may be undefined [-Wsequence-point]
155 | Index = ++Index % v.size();
Index = ++Index
is already UB because there is no sequence point between two writes to Index
(edited)sv_dnsbl_ban
setting is enabled.
Note that enabling sv_dnsbl
and sv_dnsbl_ban
at the same time will still cause the players to be banned immediately. To prevent this, first enable sv_dnsbl
for at least one tick, then enable sv_dnsbl_ban
.
Closes #2640.
Foo foo;
foo = Foo {
a: 69,
b: 420,
};
but can't access values Foo foo;
foo = Foo {
a: 69,
b: 420,
};
but can't access values #!/bin/sh
counts_file="temp_counts.txt"
> "$counts_file"
for i in $(cat ~/servers/all-locations); do
ssh $i.ddnet.org "
filtered_lines=\$(grep -A3 'server: player has entered the game.' servers/servers/*log* | sort | uniq)
filtered_lines=\$(echo \"\$filtered_lines\" | grep 'version=')
echo \"\$filtered_lines\" | sort | awk -F'version=' '{
count[\$2]++
}
END {
for (version in count)
print version, count[version]
}' | sort
" >> "$counts_file"
done
awk '{
version = $1
count = $2
counts[version] += count
} END {
for (version in counts)
print version, counts[version]
}' "$counts_file" > temp_output.txt
while read -r version count; do
echo "$version was found $count times" >> results.txt
done < temp_output.txt
rm "$counts_file" temp_output.txt
#!/bin/sh
counts_file="temp_counts.txt"
> "$counts_file"
for i in $(cat ~/servers/all-locations); do
ssh $i.ddnet.org "
filtered_lines=\$(grep -A3 'server: player has entered the game.' servers/servers/*log* | sort | uniq)
filtered_lines=\$(echo \"\$filtered_lines\" | grep 'version=')
echo \"\$filtered_lines\" | sort | awk -F'version=' '{
count[\$2]++
}
END {
for (version in count)
print version, count[version]
}' | sort
" >> "$counts_file"
done
awk '{
version = $1
count = $2
counts[version] += count
} END {
for (version in counts)
print version, counts[version]
}' "$counts_file" > temp_output.txt
while read -r version count; do
echo "$version was found $count times" >> results.txt
done < temp_output.txt
rm "$counts_file" temp_output.txt
k
anyway. if you don't like k
, press F1 and type:
bind <key> kill
where <key> is any key you like, e.g.
bind q kill
then you only have to press q to respawn