Skip to content

Commit

Permalink
Fix limited deck editor showing for spectators and crashing the game.
Browse files Browse the repository at this point in the history
  • Loading branch information
iGemini committed Oct 25, 2017
1 parent fd31d05 commit 3d08c46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions octgnFX/Octgn/Networking/ClientHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -971,9 +971,12 @@ public void LookAtBottom(Player player, int uid, Group group, int count, bool lo
public void StartLimited(Player player, Guid[] packs)
{
Program.GameMess.System("{0} starts a limited game.", player);
var wnd = new Play.Dialogs.PickCardsDialog();
WindowManager.PlayWindow.ShowBackstage(wnd);
wnd.OpenPacks(packs);
if (Player.LocalPlayer.Spectator == false)
{
var wnd = new Play.Dialogs.PickCardsDialog();
WindowManager.PlayWindow.ShowBackstage(wnd);
wnd.OpenPacks(packs);
}
}

public void AddPacks(Player player, Guid[] packs, bool selfOnly)
Expand Down
2 changes: 1 addition & 1 deletion recentchanges.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@

Fix limited deck editor showing for spectators and crashing the game.

0 comments on commit 3d08c46

Please sign in to comment.