mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-13 07:57:58 +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
|
// monsters who last targeted this player will wake up immediately
|
||||||
// after the player has respawned.
|
// after the player has respawned.
|
||||||
AActor *th;
|
AActor *th;
|
||||||
TThinkerIterator<AActor> it;
|
auto it = GetThinkerIterator<AActor>();
|
||||||
while ((th = it.Next()))
|
while ((th = it.Next()))
|
||||||
{
|
{
|
||||||
if (th->LastHeard == oldactor) th->LastHeard = nullptr;
|
if (th->LastHeard == oldactor) th->LastHeard = nullptr;
|
||||||
|
|
|
@ -1035,7 +1035,7 @@ void FLevelLocals::CreateLinkedPortals()
|
||||||
if (linkedPortals.Size() > 0)
|
if (linkedPortals.Size() > 0)
|
||||||
{
|
{
|
||||||
// We need to relink all actors that may touch a linked line portal
|
// We need to relink all actors that may touch a linked line portal
|
||||||
TThinkerIterator<AActor> it;
|
auto it = Level->GetThinkerIterator<AActor>();
|
||||||
AActor *actor;
|
AActor *actor;
|
||||||
while ((actor = it.Next()))
|
while ((actor = it.Next()))
|
||||||
{
|
{
|
||||||
|
|
|
@ -413,7 +413,7 @@ static void StoreLevelStats(FLevelLocals *Level)
|
||||||
|
|
||||||
// Check for living monsters. On some maps it can happen
|
// Check for living monsters. On some maps it can happen
|
||||||
// that the counter misses some.
|
// that the counter misses some.
|
||||||
TThinkerIterator<AActor> it;
|
auto it = Level->GetThinkerIterator<AActor>();
|
||||||
AActor *ac;
|
AActor *ac;
|
||||||
int mc = 0;
|
int mc = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue