Skip to content
Snippets Groups Projects
Commit 669f2ef4 authored by Turid Cecilie Dahl's avatar Turid Cecilie Dahl
Browse files

PST gets correct round when not finished and TP != 0

parent 04ddc279
No related branches found
No related tags found
1 merge request!66Resolve "Make it look pretty"
frontend/android/assets/colorRushPhoto.png

30.4 KiB | W: | H:

frontend/android/assets/colorRushPhoto.png

84.8 KiB | W: | H:

frontend/android/assets/colorRushPhoto.png
frontend/android/assets/colorRushPhoto.png
frontend/android/assets/colorRushPhoto.png
frontend/android/assets/colorRushPhoto.png
  • 2-up
  • Swipe
  • Onion skin
frontend/android/assets/colorRushPhotoEdit.png

32.3 KiB | W: | H:

frontend/android/assets/colorRushPhotoEdit.png

73.5 KiB | W: | H:

frontend/android/assets/colorRushPhotoEdit.png
frontend/android/assets/colorRushPhotoEdit.png
frontend/android/assets/colorRushPhotoEdit.png
frontend/android/assets/colorRushPhotoEdit.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -66,7 +66,7 @@ public abstract class PlayStateTemplate extends State {
gsm.set(new ScoreState(gsm, this.score, new FinishedTournamentState(gsm, tournament)));
} else{
//Tournament not finished
if(rc.isNextRound()) {
if(updatedRound.getTournamentPoints() != 0) {
try {
//Get new round if ready
Round nextRound = QueryIntermediate.getRoundFromTournament(tournament.get_id(), GameWare.getInstance().getPlayer().getId(), updatedRound.getRoundNr()+1);
......@@ -74,10 +74,11 @@ public abstract class PlayStateTemplate extends State {
} catch (Exception e) {
e.printStackTrace();
}
}
} else {
gsm.set(new ScoreState(gsm, this.score, new ViewTournamentState(gsm, tournament, updatedRound)));
}
}
}
public void setScore(int score){
this.score = score;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment