mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Fixed string being wrong if there is a char above 128 (like accents), causing network glitches
This commit is contained in:
parent
70463db037
commit
7515c99195
1 changed files with 0 additions and 15 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue