mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 12:32:34 +00:00
- removed a few direct uses of TThinkerIterator.
This commit is contained in:
parent
c8cd11422a
commit
ae544fa21f
3 changed files with 3 additions and 3 deletions
|
@ -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<AActor> it;
|
||||
auto it = GetThinkerIterator<AActor>();
|
||||
while ((th = it.Next()))
|
||||
{
|
||||
if (th->LastHeard == oldactor) th->LastHeard = nullptr;
|
||||
|
|
|
@ -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<AActor> it;
|
||||
auto it = Level->GetThinkerIterator<AActor>();
|
||||
AActor *actor;
|
||||
while ((actor = it.Next()))
|
||||
{
|
||||
|
|
|
@ -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<AActor> it;
|
||||
auto it = Level->GetThinkerIterator<AActor>();
|
||||
AActor *ac;
|
||||
int mc = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue