Revision | bfaef692ca3f0da24efa084897ff3a82d053cb0a (tree) |
---|---|
Zeit | 2019-01-22 05:24:07 |
Autor | sebastian_bugiu <sebastian_ <bugiu@head...> |
Commiter | sebastian_bugiu <sebastian_ |
Adding lobby support.
@@ -995,7 +995,7 @@ | ||
995 | 995 | |
996 | 996 | Session createdSession = new Session(); |
997 | 997 | createdSession.setSessionName(session.getSessionName()); |
998 | - createdSession.setMapId(session.getMapId()); | |
998 | + createdSession.setMapId(selectedMapId); | |
999 | 999 | createdSession.setMaxPlayerNum(session.getMaxPlayerNum()); |
1000 | 1000 | createdSession.setGameType(session.getGameType()); |
1001 | 1001 | createdSession.setStartTime(new Date()); |
@@ -1028,6 +1028,7 @@ | ||
1028 | 1028 | serverSession.setServerId(server.getId()); |
1029 | 1029 | serverSession.setSessionId(sessionWithId.getId()); |
1030 | 1030 | server.setSessionId(sessionWithId.getId()); |
1031 | + server.setMapId(selectedMapId); | |
1031 | 1032 | em.persist(serverSession); |
1032 | 1033 | |
1033 | 1034 | user.setInSession(1); |