- after realizing that changing the sector's MOD variable to an FNameNoInit doesn't do anything bad, I just went ahead and got rid of the last place in the engine that still used this data type for internal storage.

This commit is contained in:
Christoph Oelckers 2016-01-05 16:10:04 +01:00
commit 3e13e772ef
4 changed files with 10 additions and 7 deletions

View file

@ -369,15 +369,18 @@ void P_SerializeWorld (FArchive &arc)
<< sec->heightsec
<< sec->bottommap << sec->midmap << sec->topmap
<< sec->gravity
<< sec->damageamount
<< sec->damagemod;
<< sec->damageamount;
if (SaveVersion >= 4528)
{
arc << sec->damageinterval
<< sec->leakydamage;
<< sec->leakydamage
<< sec->damagetype;
}
else
{
short damagemod;
arc << damagemod;
sec->damagetype = MODtoDamageType(damagemod);
if (sec->damageamount < 20)
{
sec->leakydamage = 0;