Commit 6dd41f8c authored by Quentin DRUAULT-AUBIN's avatar Quentin DRUAULT-AUBIN
Browse files

[Table] Fix reset

parent 8c926837
...@@ -915,6 +915,8 @@ void onClickFire(MouseEvent event) { ...@@ -915,6 +915,8 @@ void onClickFire(MouseEvent event) {
System.out.println("Je suis pas un spectateur"); System.out.println("Je suis pas un spectateur");
if(player.getLightPublicUser().getId().equals(facade.getFacadeData().getMyPublicUserProfile().getId())) { if(player.getLightPublicUser().getId().equals(facade.getFacadeData().getMyPublicUserProfile().getId())) {
grid = opponentGrid; grid = opponentGrid;
// Reset the number of turns passed for J1.
nbPassedTurns = 0;
} else { } else {
grid = playerGrid; grid = playerGrid;
} }
...@@ -966,8 +968,6 @@ void onClickFire(MouseEvent event) { ...@@ -966,8 +968,6 @@ void onClickFire(MouseEvent event) {
destroyShip(destroyedShip, grid); destroyShip(destroyedShip, grid);
} }
// Reset the number of turns passed.
nbPassedTurns = 0;
} else { } else {
placeMineGraphics(grid,coord.getX(), coord.getY(), "inGameGUI_missed_cell"); placeMineGraphics(grid,coord.getX(), coord.getY(), "inGameGUI_missed_cell");
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment