From ae544fa21f7ac21bb854d950b6c594d39a0749da Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 27 Jan 2019 16:15:32 +0100 Subject: [PATCH] - removed a few direct uses of TThinkerIterator. --- src/p_mobj.cpp | 2 +- src/portal.cpp | 2 +- src/statistics.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/p_mobj.cpp b/src/p_mobj.cpp index cea306841..e87760ae0 100644 --- a/src/p_mobj.cpp +++ b/src/p_mobj.cpp @@ -5136,7 +5136,7 @@ AActor *FLevelLocals::SpawnPlayer (FPlayerStart *mthing, int playernum, int flag // monsters who last targeted this player will wake up immediately // after the player has respawned. AActor *th; - TThinkerIterator it; + auto it = GetThinkerIterator(); while ((th = it.Next())) { if (th->LastHeard == oldactor) th->LastHeard = nullptr; diff --git a/src/portal.cpp b/src/portal.cpp index d008e4fcc..b4764c608 100644 --- a/src/portal.cpp +++ b/src/portal.cpp @@ -1035,7 +1035,7 @@ void FLevelLocals::CreateLinkedPortals() if (linkedPortals.Size() > 0) { // We need to relink all actors that may touch a linked line portal - TThinkerIterator it; + auto it = Level->GetThinkerIterator(); AActor *actor; while ((actor = it.Next())) { diff --git a/src/statistics.cpp b/src/statistics.cpp index 477ba72ad..2c155f5fb 100644 --- a/src/statistics.cpp +++ b/src/statistics.cpp @@ -413,7 +413,7 @@ static void StoreLevelStats(FLevelLocals *Level) // Check for living monsters. On some maps it can happen // that the counter misses some. - TThinkerIterator it; + auto it = Level->GetThinkerIterator(); AActor *ac; int mc = 0;