Skip to content

Commit

Permalink
Fix respawn whitescreen
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkensor committed Jul 21, 2023
1 parent 77f1599 commit 4b36258
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class EPF_BasicRespawnSystemComponent : SCR_RespawnSystemComponent
persistence.SetPersistentId(string.Empty); // Force generation of new id for dead body
persistence.OverrideSelfSpawn(true);

// Fresh character spawn
LoadCharacter(playerId, newId, null);
// Fresh character spawn (NOTE: We need to push this to next frame due to a bug where on the same death frame we can not hand over a new char).
GetGame().GetCallqueue().Call(LoadCharacter, playerId, newId, null);
}

//------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 4b36258

Please sign in to comment.