Commit 186ffff9 authored by Théo Hordequin's avatar Théo Hordequin

[Spec] Change condition for update spec

parent 8a070187
......@@ -158,7 +158,7 @@ public class IHMTableFacade implements IIHMTableToIHMMain, IIHMTableToData {
boolean startSpectateur = true;
Game game = facadeData.getGame();
LightPublicUser user = facadeData.getMyPublicUserProfile().getLightPublicUser();
for(int i=0;i<game.getPlayers().size() && !startSpectateur;++i)
for(int i=0;i<game.getPlayers().size() && startSpectateur;++i)
if(game.getPlayers().get(i).getLightPublicUser().getId() == user.getId())
startSpectateur = false;
System.out.println(startSpectateur);
......
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