mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Restart button replays the whole match
This commit is contained in:
@@ -179,6 +179,11 @@ public class MatchController {
|
||||
startRound();
|
||||
}
|
||||
|
||||
public void replay() {
|
||||
gamesPlayed.clear();
|
||||
startRound();
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO: Write javadoc for this method.
|
||||
*
|
||||
|
||||
@@ -84,7 +84,7 @@ public class ControlWinLose {
|
||||
public void actionOnRestart() {
|
||||
SOverlayUtils.hideOverlay();
|
||||
saveOptions();
|
||||
match.replayRound();
|
||||
match.replay();
|
||||
}
|
||||
|
||||
/** Action performed when "quit" button is pressed in default win/lose UI. */
|
||||
|
||||
Reference in New Issue
Block a user