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:
UnknownShadow200 2017-08-12 00:03:27 +10:00
parent d93401418a
commit 7be0759995

View File

@ -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;
}