Commit b9ee3b43 authored by Thibault Chiche's avatar Thibault Chiche
Browse files

[ihmTable] fix partie 2 joueurs bateaux grises

parent 186ffff9
......@@ -156,10 +156,11 @@ public class IHMTableFacade implements IIHMTableToIHMMain, IIHMTableToData {
//Gérer les cas spectateur/utilisateur standard
boolean startSpectateur = true;
Game game = facadeData.getGame();
LightPublicUser user = facadeData.getMyPublicUserProfile().getLightPublicUser();
for(int i=0;i<game.getPlayers().size() && startSpectateur;++i)
if(game.getPlayers().get(i).getLightPublicUser().getId() == user.getId())
if(game.getPlayers().get(i).getLightPublicUser().getId().equals(user.getId()))
startSpectateur = false;
System.out.println(startSpectateur);
if(startSpectateur && controller != null)
......
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