Skip to content

Commit

Permalink
Second release.
Browse files Browse the repository at this point in the history
Fixed a bug where a user could get duplicate cards from their first pick
in the second and third pack.
  • Loading branch information
thquinn committed Feb 24, 2015
1 parent 51f5248 commit 900d2b9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions ConnectWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public ConnectWindow()
MaximizeBox = false;
#if DEBUG
textBox1.Text = "isochron.us.to";
ActiveControl = textBox2;
#endif
}

Expand Down
3 changes: 3 additions & 0 deletions DraftServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ private void HandleMessage(TcpServerConnection connection, string msg)
if (draftStateToCheck.boosters.Count > 0)
packOver = false;
if (packOver)
{
StartNextPack();
return;
}
}

// Current player gets the next booster in their queue, if any.
Expand Down
2 changes: 1 addition & 1 deletion DraftWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public void SetPackCounts(string message)
parts.RemoveAt(0);
packCounts = "";
for (int i = 0; i < parts.Count - 1; i += 2)
packCounts += "\r\n" + parts[i] + " has " + parts[i + 1] + " packs.";
packCounts += "\r\n" + parts[i] + " has " + parts[i + 1] + (parts[i + 1] == "1" ? " pack." : " packs.");
SetStatusTextBox();
}
private void SetStatusTextBox()
Expand Down

0 comments on commit 900d2b9

Please sign in to comment.