- fixed some merging issues.
This commit is contained in:
parent
7966282c1c
commit
8872125f96
2 changed files with 6 additions and 8 deletions
|
|
@ -548,17 +548,14 @@ CUSTOM_CVAR (Int, cl_maxdecals, 1024, CVAR_ARCHIVE)
|
|||
}
|
||||
else
|
||||
{
|
||||
ForAllLevels([&](FLevelLocals *Level)
|
||||
while (level.ImpactDecalCount > self)
|
||||
{
|
||||
while (Level->ImpactDecalCount > self)
|
||||
DThinker *thinker = DThinker::FirstThinker(STAT_AUTODECAL);
|
||||
if (thinker != NULL)
|
||||
{
|
||||
DThinker *thinker = DThinker::FirstThinker(STAT_AUTODECAL);
|
||||
if (thinker != NULL)
|
||||
{
|
||||
thinker->Destroy();
|
||||
}
|
||||
thinker->Destroy();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue