Skip to content

Commit 6592a0f

Browse files
committed
Take center of chapter panel trigger instead of top left when figuring out fallback lobby spawn
1 parent 4e208f1 commit 6592a0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UI/ReturnToLobbyHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public static void OnSessionCreated() {
174174

175175
if (foundEntity != null) {
176176
// found it!
177-
Vector2 spawnPoint = room.Spawns.ClosestTo(foundEntity.Position + room.Position);
177+
Vector2 spawnPoint = room.Spawns.ClosestTo(foundEntity.Position + new Vector2(foundEntity.Width, foundEntity.Height) / 2 + room.Position);
178178

179179
CollabModule.Instance.Session.LobbyRoom = room.Name;
180180
CollabModule.Instance.Session.LobbySpawnPointX = spawnPoint.X;

0 commit comments

Comments
 (0)