- sanitized the 'frozen level' code.
This had two different flags that were checked totally inconsistently, and one was not even saved. Moved everything into a few subfunctions so that these checks do not have to be scattered all over the code.
This commit is contained in:
parent
3721771934
commit
259ae41774
25 changed files with 124 additions and 65 deletions
|
|
@ -1184,7 +1184,7 @@ void DDecalFader::Tick ()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (Level->maptime < TimeToStartDecay || bglobal.freeze)
|
||||
if (Level->maptime < TimeToStartDecay || Level->isFrozen())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -1271,7 +1271,7 @@ void DDecalStretcher::Tick ()
|
|||
Destroy ();
|
||||
return;
|
||||
}
|
||||
if (Level->maptime < TimeToStart || bglobal.freeze)
|
||||
if (Level->maptime < TimeToStart || Level->isFrozen())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -1339,7 +1339,7 @@ void DDecalSlider::Tick ()
|
|||
Destroy ();
|
||||
return;
|
||||
}
|
||||
if (Level->maptime < TimeToStart || bglobal.freeze)
|
||||
if (Level->maptime < TimeToStart || Level->isFrozen())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
@ -1407,7 +1407,7 @@ void DDecalColorer::Tick ()
|
|||
}
|
||||
else
|
||||
{
|
||||
if (Level->maptime < TimeToStartDecay || bglobal.freeze)
|
||||
if (Level->maptime < TimeToStartDecay || Level->isFrozen())
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue