Revision | d06e7b8c190782d789aa8022cae6be1e727444fd (tree) |
---|---|
Time | 2019-01-30 05:19:30 |
Author | sebastian_bugiu <sebastian_ <bugiu@head...> |
Commiter | sebastian_bugiu <sebastian_ |
Adding lobby support.
@@ -1056,7 +1056,10 @@ | ||
1056 | 1056 | if (i < invitedUserIdList.size()) { |
1057 | 1057 | sessionUserSpawnPoint.setUserId(invitedUserIdList.get(i)); |
1058 | 1058 | } else { |
1059 | + // This is the lobby leader. | |
1059 | 1060 | sessionUserSpawnPoint.setUserId(user.getId()); |
1061 | + // We set the spawn point to be sent to the session initiator here. | |
1062 | + server.setSpawnPoint(i); | |
1060 | 1063 | } |
1061 | 1064 | sessionUserSpawnPoint.setSessionId(sessionWithId.getId()); |
1062 | 1065 | em.persist(sessionUserSpawnPoint); |