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