mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
AI vs AI match shows Match Results (mobile)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user