- removed all savegame compatibility handling, since the data is just too different from what it was before to try to convert it.
This commit is contained in:
parent
4e5ba49aca
commit
3ee42f6aa6
15 changed files with 150 additions and 604 deletions
123
src/p_user.cpp
123
src/p_user.cpp
|
|
@ -643,28 +643,10 @@ void APlayerPawn::Serialize (FArchive &arc)
|
|||
<< DamageFade
|
||||
<< PlayerFlags
|
||||
<< FlechetteType;
|
||||
if (SaveVersion < 3829)
|
||||
{
|
||||
GruntSpeed = 12;
|
||||
FallingScreamMinSpeed = 35;
|
||||
FallingScreamMaxSpeed = 40;
|
||||
}
|
||||
else
|
||||
{
|
||||
arc << GruntSpeed << FallingScreamMinSpeed << FallingScreamMaxSpeed;
|
||||
}
|
||||
if (SaveVersion >= 4502)
|
||||
{
|
||||
arc << UseRange;
|
||||
}
|
||||
if (SaveVersion >= 4503)
|
||||
{
|
||||
arc << AirCapacity;
|
||||
}
|
||||
if (SaveVersion >= 4526)
|
||||
{
|
||||
arc << ViewHeight;
|
||||
}
|
||||
arc << GruntSpeed << FallingScreamMinSpeed << FallingScreamMaxSpeed;
|
||||
arc << UseRange;
|
||||
arc << AirCapacity;
|
||||
arc << ViewHeight;
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
|
|
@ -3039,11 +3021,6 @@ void player_t::Serialize (FArchive &arc)
|
|||
<< centering
|
||||
<< health
|
||||
<< inventorytics;
|
||||
if (SaveVersion < 4513)
|
||||
{
|
||||
bool backpack;
|
||||
arc << backpack;
|
||||
}
|
||||
arc << fragcount
|
||||
<< spreecount
|
||||
<< multicount
|
||||
|
|
@ -3074,50 +3051,14 @@ void player_t::Serialize (FArchive &arc)
|
|||
<< air_finished
|
||||
<< turnticks
|
||||
<< oldbuttons;
|
||||
if (SaveVersion >= 4929)
|
||||
{
|
||||
arc << hazardtype
|
||||
<< hazardinterval;
|
||||
}
|
||||
bool IsBot = false;
|
||||
if (SaveVersion >= 4514)
|
||||
{
|
||||
arc << Bot;
|
||||
}
|
||||
else
|
||||
{
|
||||
arc << IsBot;
|
||||
}
|
||||
arc << hazardtype
|
||||
<< hazardinterval;
|
||||
arc << Bot;
|
||||
arc << BlendR
|
||||
<< BlendG
|
||||
<< BlendB
|
||||
<< BlendA;
|
||||
if (SaveVersion < 3427)
|
||||
{
|
||||
WORD oldaccuracy, oldstamina;
|
||||
arc << oldaccuracy << oldstamina;
|
||||
if (mo != NULL)
|
||||
{
|
||||
mo->accuracy = oldaccuracy;
|
||||
mo->stamina = oldstamina;
|
||||
}
|
||||
}
|
||||
if (SaveVersion < 4041)
|
||||
{
|
||||
// Move weapon state flags from cheats and into WeaponState.
|
||||
WeaponState = ((cheats >> 14) & 1) | ((cheats & (0x37 << 24)) >> (24 - 1));
|
||||
cheats &= ~((1 << 14) | (0x37 << 24));
|
||||
}
|
||||
if (SaveVersion < 4527)
|
||||
{
|
||||
BYTE oldWeaponState;
|
||||
arc << oldWeaponState;
|
||||
WeaponState = oldWeaponState;
|
||||
}
|
||||
else
|
||||
{
|
||||
arc << WeaponState;
|
||||
}
|
||||
arc << WeaponState;
|
||||
arc << LogText
|
||||
<< ConversationNPC
|
||||
<< ConversationPC
|
||||
|
|
@ -3137,45 +3078,10 @@ void player_t::Serialize (FArchive &arc)
|
|||
<< crouchviewdelta
|
||||
<< original_cmd
|
||||
<< original_oldbuttons;
|
||||
|
||||
if (SaveVersion >= 3475)
|
||||
{
|
||||
arc << poisontype << poisonpaintype;
|
||||
}
|
||||
else if (poisoner != NULL)
|
||||
{
|
||||
poisontype = poisoner->DamageType;
|
||||
poisonpaintype = poisoner->PainType != NAME_None ? poisoner->PainType : poisoner->DamageType;
|
||||
}
|
||||
|
||||
if (SaveVersion >= 3599)
|
||||
{
|
||||
arc << timefreezer;
|
||||
}
|
||||
else
|
||||
{
|
||||
cheats &= ~(1 << 15); // make sure old CF_TIMEFREEZE bit is cleared
|
||||
}
|
||||
if (SaveVersion < 3640)
|
||||
{
|
||||
cheats &= ~(1 << 17); // make sure old CF_REGENERATION bit is cleared
|
||||
}
|
||||
if (SaveVersion >= 3780)
|
||||
{
|
||||
arc << settings_controller;
|
||||
}
|
||||
else
|
||||
{
|
||||
settings_controller = (this - players == Net_Arbitrator);
|
||||
}
|
||||
if (SaveVersion >= 4505)
|
||||
{
|
||||
arc << onground;
|
||||
}
|
||||
else
|
||||
{
|
||||
onground = (mo->Z() <= mo->floorz) || (mo->flags2 & MF2_ONMOBJ) || (mo->BounceFlags & BOUNCE_MBF) || (cheats & CF_NOCLIP2);
|
||||
}
|
||||
arc << poisontype << poisonpaintype;
|
||||
arc << timefreezer;
|
||||
arc << settings_controller;
|
||||
arc << onground;
|
||||
|
||||
if (arc.IsLoading ())
|
||||
{
|
||||
|
|
@ -3188,10 +3094,7 @@ void player_t::Serialize (FArchive &arc)
|
|||
{
|
||||
userinfo.SkinChanged(skinname, CurrentPlayerClass);
|
||||
}
|
||||
if (SaveVersion >= 4522)
|
||||
{
|
||||
arc << MUSINFOactor << MUSINFOtics;
|
||||
}
|
||||
arc << MUSINFOactor << MUSINFOtics;
|
||||
}
|
||||
|
||||
bool P_IsPlayerTotallyFrozen(const player_t *player)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue