Merge branch 'maint'

This commit is contained in:
Randy Heit 2014-02-24 19:26:50 -06:00
commit e7f427aa60
13 changed files with 56 additions and 38 deletions

View file

@ -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);
}
}