Added better GPS handling, Improved test mode, Fixed naming of players not being broadcast until a new HelloClient, Fixed lobby restarts, Fixed task handling

This commit is contained in:
Bandwidth
2026-04-27 23:18:13 +02:00
parent d886f97e14
commit 207f997254
8 changed files with 1175 additions and 77 deletions

View File

@@ -487,6 +487,15 @@ namespace Subsystems
{
State.Phase = GamePhase.Lobby;
_manager?.uiSubsystem?.HideMeetingPanel();
// Bodies survive the scene reload because the marker GameObjects are
// parented under MapCenterPoint (which lives in the persistent
// Client.unity scene). Without this clear, returning to lobby and
// starting a new round leaves stale corpses on the map of the new
// round. Server already cleared its `_bodies` set in
// ProcessReturnToLobby; this is the client-side mirror that was
// missing in HandleVotingClosed's symmetry.
_manager?.mapSubsystem?.ClearBodyMarkers();
_manager?.mapSubsystem?.ClearSabotageMarkers();
// Unified lobby: regardless of role, return to create.unity.
SceneManager.LoadScene("create", LoadSceneMode.Single);
}