made it possible to restart game
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user