From 902b89212c22c39348081dfc1e4fa7957a311553 Mon Sep 17 00:00:00 2001 From: MichaelTheShifter Date: Sun, 26 Jun 2016 12:31:01 -0400 Subject: More matchmaking fixes --- source/WindowsFormsApplication1/Apps/NetworkBrowser.cs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'source/WindowsFormsApplication1/Apps') diff --git a/source/WindowsFormsApplication1/Apps/NetworkBrowser.cs b/source/WindowsFormsApplication1/Apps/NetworkBrowser.cs index 1890744..4662cb8 100644 --- a/source/WindowsFormsApplication1/Apps/NetworkBrowser.cs +++ b/source/WindowsFormsApplication1/Apps/NetworkBrowser.cs @@ -395,13 +395,16 @@ Those above values only matter if the leader decides to become a friend. If they t.Tick += (o, a) => { SetupSidePane(Online.Hacking.Matchmaker.Players[sindex]); - if(sindex < Online.Hacking.Matchmaker.Players.Count - 1) + if (Matchmaker.Players.Count > 1) { - sindex = 0; - } - else - { - sindex += 1; + if (sindex < Online.Hacking.Matchmaker.Players.Count - 1) + { + sindex = 0; + } + else + { + sindex += 1; + } } }; t.Start(); -- cgit v1.2.3