*Minor fix to the new Home Screen(nice and understandable code); Picking random deck for the AI causes it to echo the deck chosen for the human.

This commit is contained in:
Hellfish
2011-09-25 09:32:46 +00:00
parent a03350a488
commit 487e2483cf

View File

@@ -1013,7 +1013,7 @@ public class Gui_HomeScreen {
Deck rDeck = chooseRandomDeck();
if (rDeck != null) {
String msg = String.format("The computer is using deck: %s.", Constant.Runtime.HumanDeck[0].getName());
String msg = String.format("The computer is using deck: %s.", Constant.Runtime.ComputerDeck[0].getName());
JOptionPane.showMessageDialog(null, msg, "Random Deck Name", JOptionPane.INFORMATION_MESSAGE);
Constant.Runtime.ComputerDeck[0] = rDeck;