Commit f9fe6090 authored by jwars62's avatar jwars62
Browse files

Update ButtonGrilleHautControleur.java

parent 32dcb6da
......@@ -53,7 +53,11 @@ public class ButtonGrilleHautControleur implements ActionListener{
for(Player p : Network.listActivePlayers(HTTP_LOCALHOST)){
String[] n = p.getName().split(":");
boolean init = log.getPL() != log.getG().getInitiator();
String s = log.getG().getId()+log.getG().getInitiator().getName()+init+(log.getCompt());
int i = log.getCompt();
if(log.getPL() == log.getG().getInitiator()){
i++;
}
String s = log.getG().getId()+log.getG().getInitiator().getName()+init+i;
if(n.length == 2){
System.out.println("\1:"+s+"\n2:"+n[0]);
if(n[0].equals(s)){
......
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