Fixed Lobby.Joinable

GetData("joinable") returns "True" or "False", (note upercase), so the Joinable would always return false.

Fixed by setting to LowerInvariant, since I'm not sure if it returns it uppercase on other platforms as well, or if this ever gets changed.
This commit is contained in:
Sean L 2019-01-11 14:19:34 +01:00 committed by GitHub
parent 12e26e3f5d
commit 07f9f00cb4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -366,7 +366,7 @@ public bool Joinable
{
if ( !IsValid ) { return false; }
string joinable = CurrentLobbyData.GetData( "joinable" );
switch ( joinable )
switch ( joinable.ToLowerInvariant() )
{
case "true":
return true;