made it possible to restart game

This commit is contained in:
Sem van der Hoeven
2020-06-07 19:20:00 +02:00
parent f812fedd11
commit d5186ceb24
2 changed files with 2 additions and 1 deletions

View File

@@ -129,6 +129,7 @@ public class MainGame extends Game implements ClientCallback {
enemyReady = false;
playersTurn = true;
turn = 0;
chosenFaction = null;
setGamestate(GAMESTATE.SELECTING_FACTION);
connectToServer();
// playSong();

View File

@@ -24,7 +24,7 @@ public class TextRenderer implements Disposable {
batch.dispose();
font.dispose();
} catch (IllegalArgumentException e) {
e.printStackTrace();
System.out.println("There was an error disposing textRenderer: " + e.getMessage());
}
}