From 198c714dad7625abbbebf7fe92c014f35347b27e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 16 Sep 2010 20:47:41 +0000 Subject: [PATCH] - fixed the compatibility handler of AAmbientSound::Serialize. SVN r2802 (trunk) --- src/s_advsound.cpp | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/src/s_advsound.cpp b/src/s_advsound.cpp index 39ef8f75c..a2fa8ccd0 100644 --- a/src/s_advsound.cpp +++ b/src/s_advsound.cpp @@ -2005,40 +2005,10 @@ IMPLEMENT_CLASS (AAmbientSound) void AAmbientSound::Serialize (FArchive &arc) { Super::Serialize (arc); - arc << bActive; - - if (SaveVersion < 1902) + arc << bActive << NextCheck; + if (SaveVersion < 2798) { - arc << NextCheck; - NextCheck += gametic; - if (NextCheck < 0) NextCheck = INT_MAX; - } - else if (SaveVersion < 2798) - { - if (arc.IsStoring()) - { - if (NextCheck != INT_MAX) - { - int checktime = NextCheck - gametic; - arc << checktime; - } - else - { - arc << NextCheck; - } - } - else - { - arc << NextCheck; - if (NextCheck != INT_MAX) - { - NextCheck += gametic; - } - } - } - else - { - arc << NextCheck; + NextCheck += level.maptime; } }