small fix
This commit is contained in:
parent
6a29d2a2d6
commit
cba5aef9f1
@ -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,10 +157,12 @@ public class GameManager implements Listener
|
|||||||
}
|
}
|
||||||
if(!team.getTutorial().hasEnded())
|
if(!team.getTutorial().hasEnded())
|
||||||
{
|
{
|
||||||
return;
|
finished = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(!finished)
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
double percentage = (double) (System.currentTimeMillis() - game.GetStateTime()) / game.PrepareTime;
|
double percentage = (double) (System.currentTimeMillis() - game.GetStateTime()) / game.PrepareTime;
|
||||||
|
Loading…
Reference in New Issue
Block a user