- moved FirstThinker function to FLevelLocals

Currently it is meaningless but that's where it should be later.
This commit is contained in:
Christoph Oelckers 2019-01-28 14:06:19 +01:00
commit d0942bcb97
4 changed files with 6 additions and 6 deletions

View file

@ -542,7 +542,7 @@ CUSTOM_CVAR (Int, cl_maxdecals, 1024, CVAR_ARCHIVE)
{
while (Level->ImpactDecalCount > self)
{
DThinker *thinker = DThinker::FirstThinker(STAT_AUTODECAL);
DThinker *thinker = Level->FirstThinker(STAT_AUTODECAL);
if (thinker != NULL)
{
thinker->Destroy();
@ -555,7 +555,7 @@ void DImpactDecal::CheckMax ()
{
if (++Level->ImpactDecalCount >= cl_maxdecals)
{
DThinker *thinker = DThinker::FirstThinker (STAT_AUTODECAL);
DThinker *thinker = Level->FirstThinker (STAT_AUTODECAL);
if (thinker != NULL)
{
thinker->Destroy();