AI vs AI match shows Match Results (mobile)

This commit is contained in:
Anthony Calosa
2020-04-26 17:25:44 +08:00
parent 45a5e76e63
commit a553103e39
2 changed files with 13 additions and 1 deletions

View File

@@ -295,6 +295,7 @@ public class HostedMatch {
public void endCurrentGame() {
if (game == null) { return; }
boolean isMatchOver = game.getView().isMatchOver();
game = null;
@@ -304,7 +305,8 @@ public class HostedMatch {
humanController.getGui().clearAutoYields();
}
humanController.getGui().afterGameEnd();
if (!GuiBase.getInterface().isLibgdxPort()||!isMatchOver)
humanController.getGui().afterGameEnd();
}
humanControllers.clear();
}