Commit 7c9c6d1a authored by jwars62's avatar jwars62
Browse files

com

parent 0ca30dc2
......@@ -53,7 +53,7 @@ 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().getInitiator().getName()+init+(log.getCompt()-1);
String s = log.getG().getId()+log.getG().getInitiator().getName()+init+(log.getCompt()-1);
if(n.length == 2){
//System.out.println("\1:"+s);
if(n[0].equals(s)){
......@@ -139,7 +139,7 @@ public class ButtonGrilleHautControleur implements ActionListener{
}
boolean init = log.getPL() == log.getG().getInitiator();
String s = log.getG().getInitiator().getName()+init+log.getCompt()+":"+coords.toString();
String s = log.getG().getId()+log.getG().getInitiator().getName()+init+log.getCompt()+":"+coords.toString();
Network.suscribeNewPlayer(HTTP_LOCALHOST, new Player(s));
System.out.println("0:"+s);
log.incrCompt();
......
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