mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-23 20:57:12 -04:00
Fix control characters causing a name entry to be 1 pixel taller, which would result in a server list entry not having a name (but having players and software) with a very particular window height. (Thanks _123DMWM)
This commit is contained in:
parent
d93401418a
commit
7be0759995
@ -145,7 +145,8 @@ namespace Launcher {
|
||||
if (!UInt32.TryParse(str, NumberStyles.HexNumber, CultureInfo.InvariantCulture, out codePoint))
|
||||
return false;
|
||||
|
||||
s.Append((char)codePoint);
|
||||
// don't want control characters in names/software
|
||||
if (codePoint >= 32) s.Append((char)codePoint);
|
||||
index += 4; // skip 4 chars
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user