Commit d8aac4f0 authored by dkonam's avatar dkonam
Browse files

send role

parent cb695a35
......@@ -309,11 +309,11 @@ public class GameMediator {
System.out.println("add role "+role);
System.out.println("add Urole "+role);
this.getCurrentGame().addUser(user, role);
if (this.dataFacade.getComfacade() != null) {
this.dataFacade.getComfacade().joinGameResponse(true, id, this.currentGame);
this.dataFacade.getComfacade().joinGameResponse(true, user.getId(), this.currentGame);
}
} else {
......
......@@ -87,8 +87,7 @@ public abstract class Game extends SerializableEntity {
this.spectators.add(user);
System.out.println("spectator "+user.getId());
} else {
throw new DataException("Data : given role is not known.");
}
......
Supports Markdown
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