small fix

This commit is contained in:
Sarah 2015-11-21 18:18:13 +01:00
parent 6a29d2a2d6
commit cba5aef9f1

View File

@ -143,6 +143,7 @@ public class GameManager implements Listener
{ {
game.addTutorials(); game.addTutorials();
} }
boolean finished = true;
if(game.EnableTutorials) if(game.EnableTutorials)
{ {
for(GameTeam team : game.GetTeamList()) for(GameTeam team : game.GetTeamList())
@ -156,11 +157,13 @@ public class GameManager implements Listener
} }
if(!team.getTutorial().hasEnded()) if(!team.getTutorial().hasEnded())
{ {
finished = false;
}
}
}
if(!finished)
return; return;
} }
}
}
}
double percentage = (double) (System.currentTimeMillis() - game.GetStateTime()) / game.PrepareTime; double percentage = (double) (System.currentTimeMillis() - game.GetStateTime()) / game.PrepareTime;