Merge branch 'maint'
This commit is contained in:
commit
e7f427aa60
13 changed files with 56 additions and 38 deletions
|
|
@ -2746,14 +2746,22 @@ void P_UnPredictPlayer ()
|
|||
void player_t::Serialize (FArchive &arc)
|
||||
{
|
||||
int i;
|
||||
FString skinname;
|
||||
|
||||
arc << cls
|
||||
<< mo
|
||||
<< camera
|
||||
<< playerstate
|
||||
<< cmd
|
||||
<< userinfo
|
||||
<< DesiredFOV << FOV
|
||||
<< cmd;
|
||||
if (arc.IsLoading())
|
||||
{
|
||||
ReadUserInfo(arc, userinfo, skinname);
|
||||
}
|
||||
else
|
||||
{
|
||||
WriteUserInfo(arc, userinfo);
|
||||
}
|
||||
arc << DesiredFOV << FOV
|
||||
<< viewz
|
||||
<< viewheight
|
||||
<< deltaviewheight
|
||||
|
|
@ -2904,6 +2912,10 @@ void player_t::Serialize (FArchive &arc)
|
|||
oldbuttons = ~0;
|
||||
original_oldbuttons = ~0;
|
||||
}
|
||||
if (skinname.IsNotEmpty())
|
||||
{
|
||||
userinfo.SkinChanged(skinname, CurrentPlayerClass);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue