if (args.Transform.MapUid != null || args.OldMapId == MapId.Nullspace)
return;
+ if (_spectatorData != null)
+ {
+ // Currently scrubbing/setting the replay tick
+ // the observer will get respawned once the state was applied
+ return;
+ }
+
// The entity being spectated from was moved to null-space.
// This was probably because they were spectating some entity in a client-side replay that left PVS range.
// Simple respawn the ghost.
}
else
{
- if (existingAlertControl != null) AlertContainer.Children.Remove(existingAlertControl);
+ if (existingAlertControl != null)
+ AlertContainer.Children.Remove(existingAlertControl);
// this is a new alert + alert key or just a different alert with the same
// key, create the control and add it in the appropriate order