Skip to content

Commit

Permalink
Take center of chapter panel trigger instead of top left when figurin…
Browse files Browse the repository at this point in the history
…g out fallback lobby spawn
  • Loading branch information
maddie480 committed Apr 24, 2023
1 parent 4e208f1 commit 6592a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/ReturnToLobbyHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public static void OnSessionCreated() {

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

CollabModule.Instance.Session.LobbyRoom = room.Name;
CollabModule.Instance.Session.LobbySpawnPointX = spawnPoint.X;
Expand Down

0 comments on commit 6592a0f

Please sign in to comment.