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; enemyReady = false;
playersTurn = true; playersTurn = true;
turn = 0; turn = 0;
chosenFaction = null;
setGamestate(GAMESTATE.SELECTING_FACTION); setGamestate(GAMESTATE.SELECTING_FACTION);
connectToServer(); connectToServer();
// playSong(); // playSong();

View File

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