* Fixed a bug that you can't create tournaments with AI players (Showing the "You can join a table only one time." message).

This commit is contained in:
LevelX2 2014-06-30 01:04:29 +02:00
parent f5d0971129
commit 0115052b81
4 changed files with 8 additions and 10 deletions

View file

@ -160,7 +160,7 @@ public class TableController {
logger.fatal(new StringBuilder("couldn't get user ").append(name).append(" for join tornament userId = ").append(userId).toString());
return false;
}
if (userPlayerMap.containsKey(userId)){
if (userPlayerMap.containsKey(userId) && playerType.equals("Human")){
user.showUserMessage("Join Table", new StringBuilder("You can join a table only one time.").toString());
return false;
}