- fixed: level.flags2 was not stored in savegames. Also bumped min. savegame
version and removed old compatibility handlings. SVN r1448 (trunk)
This commit is contained in:
parent
a18018f607
commit
2c65d5b8f5
5 changed files with 9 additions and 16 deletions
|
|
@ -806,11 +806,6 @@ FArchive &operator<< (FArchive &arc, userinfo_t &info)
|
|||
arc.Read (&info.netname, sizeof(info.netname));
|
||||
}
|
||||
arc << info.team << info.aimdist << info.color << info.skin << info.gender << info.neverswitch;
|
||||
if (SaveVersion >= 1333 && SaveVersion <= 1355)
|
||||
{
|
||||
int savedaimdist;
|
||||
arc << savedaimdist;
|
||||
}
|
||||
return arc;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1400,6 +1400,7 @@ void G_SerializeLevel (FArchive &arc, bool hubLoad)
|
|||
int i = level.totaltime;
|
||||
|
||||
arc << level.flags
|
||||
<< level.flags2
|
||||
<< level.fadeto
|
||||
<< level.found_secrets
|
||||
<< level.found_items
|
||||
|
|
|
|||
|
|
@ -2010,15 +2010,8 @@ static FArchive &operator<<(FArchive &arc, FSoundChan &chan)
|
|||
<< chan.StartTime
|
||||
<< chan.Rolloff.RolloffType
|
||||
<< chan.Rolloff.MinDistance
|
||||
<< chan.Rolloff.MaxDistance;
|
||||
|
||||
if (SaveVersion >= 1416)
|
||||
{
|
||||
arc << chan.LimitRange;
|
||||
}
|
||||
else
|
||||
{
|
||||
chan.LimitRange = 256*256;
|
||||
<< chan.Rolloff.MaxDistance
|
||||
<< chan.LimitRange;
|
||||
}
|
||||
|
||||
if (arc.IsLoading())
|
||||
|
|
|
|||
|
|
@ -75,7 +75,7 @@
|
|||
// SAVESIG should match SAVEVER.
|
||||
|
||||
// MINSAVEVER is the minimum level snapshot version that can be loaded.
|
||||
#define MINSAVEVER 1393
|
||||
#define MINSAVEVER 1447
|
||||
|
||||
#if SVN_REVISION_NUMBER < MINSAVEVER
|
||||
// Never write a savegame with a version lower than what we need
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue