aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Apps
diff options
context:
space:
mode:
authorMichaelTheShifter <[email protected]>2016-06-26 12:31:01 -0400
committerMichaelTheShifter <[email protected]>2016-06-26 12:31:01 -0400
commit902b89212c22c39348081dfc1e4fa7957a311553 (patch)
treef79b131a0b5e01483f8d30367cc6bc9ae69e3c30 /source/WindowsFormsApplication1/Apps
parenta14470ce12c09a87665521387bee2f982cd5a6d0 (diff)
downloadshiftos-c--902b89212c22c39348081dfc1e4fa7957a311553.tar.gz
shiftos-c--902b89212c22c39348081dfc1e4fa7957a311553.tar.bz2
shiftos-c--902b89212c22c39348081dfc1e4fa7957a311553.zip
More matchmaking fixes
Diffstat (limited to 'source/WindowsFormsApplication1/Apps')
-rw-r--r--source/WindowsFormsApplication1/Apps/NetworkBrowser.cs15
1 files changed, 9 insertions, 6 deletions
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();