Restore saved Cgame state if the server is different (clear it otherwise)

This commit is contained in:
smallmodel 2023-08-27 19:31:45 +02:00
parent 5a250ea247
commit 963e4aa7ec
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -245,6 +245,12 @@ static void CG_TransitionSnapshot(qboolean differentServer)
CG_TransitionPlayerState(ps, ops);
}
}
if (differentServer) {
cgi.CL_RestoreSavedCgameState();
} else {
cgi.CL_ClearSavedCgameState();
}
}
/*