• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiond06e7b8c190782d789aa8022cae6be1e727444fd (tree)
Time2019-01-30 05:19:30
Authorsebastian_bugiu <sebastian_ <bugiu@head...>
Commitersebastian_bugiu <sebastian_

Log Message

Adding lobby support.

Change Summary

Incremental Difference

diff -r ec8e2d8433f8 -r d06e7b8c1907 src/headwayEnt/headwayEnt/Blackhole_Darksun_WebServer/Main.java
--- a/src/headwayEnt/headwayEnt/Blackhole_Darksun_WebServer/Main.java Mon Jan 28 23:03:44 2019 +0200
+++ b/src/headwayEnt/headwayEnt/Blackhole_Darksun_WebServer/Main.java Tue Jan 29 22:19:30 2019 +0200
@@ -1056,7 +1056,10 @@
10561056 if (i < invitedUserIdList.size()) {
10571057 sessionUserSpawnPoint.setUserId(invitedUserIdList.get(i));
10581058 } else {
1059+ // This is the lobby leader.
10591060 sessionUserSpawnPoint.setUserId(user.getId());
1061+ // We set the spawn point to be sent to the session initiator here.
1062+ server.setSpawnPoint(i);
10601063 }
10611064 sessionUserSpawnPoint.setSessionId(sessionWithId.getId());
10621065 em.persist(sessionUserSpawnPoint);