mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fix broken loading of pre-r4253 savegames.
SVN r4272 (trunk)
This commit is contained in:
parent
6ada6158ef
commit
8af465189a
2 changed files with 2 additions and 4 deletions
|
@ -398,7 +398,6 @@ void D_SetupUserInfo ()
|
|||
{
|
||||
FBaseCVar **newcvar;
|
||||
FName cvarname(cvar->GetName());
|
||||
ECVarType type;
|
||||
|
||||
switch (cvarname.GetIndex())
|
||||
{
|
||||
|
@ -900,7 +899,7 @@ void D_ReadUserInfoStrings (int pnum, BYTE **stream, bool update)
|
|||
|
||||
void ReadCompatibleUserInfo(FArchive &arc, userinfo_t &info)
|
||||
{
|
||||
char netname[MAXPLAYERNAME];
|
||||
char netname[MAXPLAYERNAME + 1];
|
||||
BYTE team;
|
||||
int aimdist, color, colorset, skin, gender;
|
||||
bool neverswitch;
|
||||
|
@ -914,7 +913,7 @@ void ReadCompatibleUserInfo(FArchive &arc, userinfo_t &info)
|
|||
|
||||
*static_cast<FStringCVar *>(info[NAME_Name]) = netname;
|
||||
*static_cast<FIntCVar *>(info[NAME_Team]) = team;
|
||||
*static_cast<FFloatCVar *>(info[NAME_AutoAim]) = (float)aimdist / ANGLE_1;
|
||||
*static_cast<FFloatCVar *>(info[NAME_Autoaim]) = (float)aimdist / ANGLE_1;
|
||||
*static_cast<FIntCVar *>(info[NAME_Skin]) = skin;
|
||||
*static_cast<FIntCVar *>(info[NAME_Gender]) = gender;
|
||||
*static_cast<FBoolCVar *>(info[NAME_NeverSwitchOnPickup]) = neverswitch;
|
||||
|
|
|
@ -566,4 +566,3 @@ xx(NeverSwitchOnPickup)
|
|||
xx(MoveBob)
|
||||
xx(StillBob)
|
||||
xx(PlayerClass)
|
||||
xx(AutoAim)
|
||||
|
|
Loading…
Reference in a new issue