Skip to content
Browse files

- remove savegame compatibility handling code.

git-svn-id: http://mancubus.net/svn/hosted/zdoom/zdoom/branches/savegamefix@3273 a95907f1-e10c-0410-b46f-9e587ccb1026
  • Loading branch information...
1 parent 77bd3da commit c02de45f5be8b4db17b8dd78c849d37443dbca1e graf committed Jul 15, 2011
Showing with 17 additions and 79 deletions.
  1. +0 −20 src/g_shared/a_lightning.cpp
  2. +12 −25 src/p_mobj.cpp
  3. +3 −12 src/p_saveg.cpp
  4. +2 −22 src/p_spec.cpp
View
20 src/g_shared/a_lightning.cpp
@@ -44,26 +44,6 @@ void DLightningThinker::Serialize (FArchive &arc)
arc << Stopped << NextLightningFlash << LightningFlashCount;
- if (SaveVersion < 3243)
- {
- // Do nothing with old savegames and just keep whatever the constructor made
- // but read the obsolete data from the savegame
- for (i = (numsectors + (numsectors+7)/8); i > 0; --i)
- {
- if (SaveVersion < 3223)
- {
- BYTE bytelight;
- arc << bytelight;
- }
- else
- {
- short shortlight;
- arc << shortlight;
- }
- }
- return;
- }
-
if (arc.IsLoading ())
{
if (LightningLightLevels != NULL)
View
37 src/p_mobj.cpp
@@ -230,12 +230,9 @@ void AActor::Serialize (FArchive &arc)
<< velz
<< tics
<< state
- << Damage;
- if (SaveVersion >= 3227)
- {
- arc << projectileKickback;
- }
- arc << flags
+ << Damage
+ << projectileKickback
+ << flags
<< flags2
<< flags3
<< flags4
@@ -297,37 +294,27 @@ void AActor::Serialize (FArchive &arc)
<< maxtargetrange
<< meleethreshold
<< meleerange
- << DamageType;
- if (SaveVersion >= 3237)
- {
- arc
+ << DamageType
<< PainType
- << DeathType;
- }
- arc << gravity
+ << DeathType
+ << gravity
<< FastChaseStrafeCount
<< master
<< smokecounter
<< BlockingMobj
<< BlockingLine
<< pushfactor
<< Species
- << Score;
- if (SaveVersion >= 3113)
- {
- arc << DesignatedTeam;
- }
- arc << lastpush << lastbump
+ << Score
+ << DesignatedTeam
+ << lastpush << lastbump
<< PainThreshold
<< DamageFactor
<< WeaveIndexXY << WeaveIndexZ
<< PoisonDamageReceived << PoisonDurationReceived << PoisonPeriodReceived << Poisoner
- << PoisonDamage << PoisonDuration << PoisonPeriod;
- if (SaveVersion >= 3235)
- {
- arc << PoisonDamageType << PoisonDamageTypeReceived;
- }
- arc << ConversationRoot << Conversation;
+ << PoisonDamage << PoisonDuration << PoisonPeriod
+ << PoisonDamageType << PoisonDamageTypeReceived
+ << ConversationRoot << Conversation;
{
FString tagstr;
View
15 src/p_saveg.cpp
@@ -322,18 +322,9 @@ void P_SerializeWorld (FArchive &arc)
for (i = 0, sec = sectors; i < numsectors; i++, sec++)
{
arc << sec->floorplane
- << sec->ceilingplane;
- if (SaveVersion < 3223)
- {
- BYTE bytelight;
- arc << bytelight;
- sec->lightlevel = bytelight;
- }
- else
- {
- arc << sec->lightlevel;
- }
- arc << sec->special
+ << sec->ceilingplane
+ << sec->lightlevel
+ << sec->special
<< sec->tag
<< sec->soundtraversed
<< sec->seqType
View
24 src/p_spec.cpp
@@ -724,17 +724,7 @@ IMPLEMENT_CLASS (DLightTransfer)
void DLightTransfer::Serialize (FArchive &arc)
{
Super::Serialize (arc);
- if (SaveVersion < 3223)
- {
- BYTE bytelight;
- arc << bytelight;
- LastLight = bytelight;
- }
- else
- {
- arc << LastLight;
- }
- arc << Source << TargetTag << CopyFloor;
+ arc << LastLight << Source << TargetTag << CopyFloor;
}
DLightTransfer::DLightTransfer (sector_t *srcSec, int target, bool copyFloor)
@@ -817,17 +807,7 @@ IMPLEMENT_CLASS (DWallLightTransfer)
void DWallLightTransfer::Serialize (FArchive &arc)
{
Super::Serialize (arc);
- if (SaveVersion < 3223)
- {
- BYTE bytelight;
- arc << bytelight;
- LastLight = bytelight;
- }
- else
- {
- arc << LastLight;
- }
- arc << Source << TargetID << Flags;
+ arc << LastLight << Source << TargetID << Flags;
}
DWallLightTransfer::DWallLightTransfer (sector_t *srcSec, int target, BYTE flags)

0 comments on commit c02de45

Please sign in to comment.
Something went wrong with that request. Please try again.