Merge pull request #705 from vis2k/MrGadget1024-patch-2

fix: Lobby Remove button not showing for P1 when Server Only
This commit is contained in:
vis2k 2019-04-03 13:37:16 +02:00 committed by GitHub
commit 5b30a94923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ public virtual void OnGUI()
else else
GUILayout.Label("Not Ready"); GUILayout.Label("Not Ready");
if (isServer && Index > 0 && GUILayout.Button("REMOVE")) if (((isServer && Index > 0) || isServerOnly) && GUILayout.Button("REMOVE"))
{ {
// This button only shows on the Host for all players other than the Host // This button only shows on the Host for all players other than the Host
// Host and Players can't remove themselves (stop the client instead) // Host and Players can't remove themselves (stop the client instead)