Restart button replays the whole match

This commit is contained in:
Maxmtg
2012-10-23 19:13:27 +00:00
parent 6b3de74da1
commit 4d5e091bb4
2 changed files with 6 additions and 1 deletions

View File

@@ -179,6 +179,11 @@ public class MatchController {
startRound(); startRound();
} }
public void replay() {
gamesPlayed.clear();
startRound();
}
/** /**
* TODO: Write javadoc for this method. * TODO: Write javadoc for this method.
* *

View File

@@ -84,7 +84,7 @@ public class ControlWinLose {
public void actionOnRestart() { public void actionOnRestart() {
SOverlayUtils.hideOverlay(); SOverlayUtils.hideOverlay();
saveOptions(); saveOptions();
match.replayRound(); match.replay();
} }
/** Action performed when "quit" button is pressed in default win/lose UI. */ /** Action performed when "quit" button is pressed in default win/lose UI. */