Fixed string being wrong if there is a char above 128 (like accents), causing network glitches

This commit is contained in:
smallmodel 2023-07-17 00:22:15 +02:00
parent 70463db037
commit 7515c99195
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -685,11 +685,6 @@ char* MSG_ReadScrambledString_ver_15(msg_t* msg) {
if (c == '%') {
c = '.';
}
// don't allow higher ascii values
// (su44: this check is missing in MoHAA)
if (c > 127) {
c = '.';
}
string[l] = c;
l++;
@ -719,11 +714,6 @@ char* MSG_ReadScrambledBigString_ver_15(msg_t* msg) {
if (c == '%') {
c = '.';
}
// don't allow higher ascii values
// (su44: this check is missing in MoHAA)
if (c > 127) {
c = '.';
}
string[l] = c;
l++;
@ -772,11 +762,6 @@ char *MSG_ReadString( msg_t *msg ) {
if ( c == '%' ) {
c = '.';
}
// don't allow higher ascii values
// (su44: this check is missing in MoHAA)
if ( c > 127 ) {
c = '.';
}
string[l] = c;
l++;