- fixed: When loading a savegame the player class in the userinfo needs to be updated.
- fixed: Class pointers should not be added to the list of garbage collected pointers. - fixed several warnings in the event code.
This commit is contained in:
parent
6fef653aa1
commit
d8ebbcfc08
8 changed files with 20 additions and 6 deletions
|
|
@ -832,7 +832,10 @@ void CopyPlayer(player_t *dst, player_t *src, const char *name)
|
|||
else
|
||||
{
|
||||
dst->userinfo.TransferFrom(uibackup);
|
||||
// The player class must come from the save, so that the menu reflects the currently playing one.
|
||||
dst->userinfo.PlayerClassChanged(src->mo->GetClass()->DisplayName);
|
||||
}
|
||||
|
||||
// Validate the skin
|
||||
dst->userinfo.SkinNumChanged(R_FindSkin(skins[dst->userinfo.GetSkin()].name, dst->CurrentPlayerClass));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue