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();
}
boolean finished = true;
if(game.EnableTutorials)
{
for(GameTeam team : game.GetTeamList())
@ -156,10 +157,12 @@ public class GameManager implements Listener
}
if(!team.getTutorial().hasEnded())
{
return;
finished = false;
}
}
}
if(!finished)
return;
}
double percentage = (double) (System.currentTimeMillis() - game.GetStateTime()) / game.PrepareTime;