Commit f9d23dbf authored by 神楽坂玲奈's avatar 神楽坂玲奈
parents 268546be c458ea69
Pipeline #5244 passed with stages
in 4 minutes and 17 seconds
...@@ -258,6 +258,8 @@ public static class TcpHelper ...@@ -258,6 +258,8 @@ public static class TcpHelper
public static void CtosMessage_UpdateDeck(Deck deckFor) public static void CtosMessage_UpdateDeck(Deck deckFor)
{ {
if (deckFor.Main.Count == 0)
return;
deckStrings.Clear(); deckStrings.Clear();
deck = deckFor; deck = deckFor;
var message = new Package(); var message = new Package();
......
...@@ -21,16 +21,13 @@ public class Room : WindowServantSP ...@@ -21,16 +21,13 @@ public class Room : WindowServantSP
private void onSelected() private void onSelected()
{ {
Config.Set("deckInUse", superScrollView.selectedString);
if (selftype < realPlayers.Length && realPlayers[selftype] != null && realPlayers[selftype].getIfPreped()) if (selftype < realPlayers.Length && realPlayers[selftype] != null && realPlayers[selftype].getIfPreped())
{ {
TcpHelper.CtosMessage_HsNotReady(); TcpHelper.CtosMessage_HsNotReady();
TcpHelper.CtosMessage_UpdateDeck(new Deck("deck/" + superScrollView.selectedString + ".ydk")); TcpHelper.CtosMessage_UpdateDeck(new Deck("deck/" + superScrollView.selectedString + ".ydk"));
TcpHelper.CtosMessage_HsReady(); TcpHelper.CtosMessage_HsReady();
} }
else
{
Config.Set("deckInUse", superScrollView.selectedString);
}
} }
private void printFile() private void printFile()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment