Skip to content

Commit

Permalink
Make the spawner abandon its target if it's EMP'd
Browse files Browse the repository at this point in the history
  • Loading branch information
ZivDero committed Dec 21, 2024
1 parent 204af4c commit 834f3a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/new/spawnmanager/spawnmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,12 @@ void SpawnManagerClass::AI()

LogicTimer = LogicRate;

/**
* No spawning if the spawner is EMP'ed.
*/
if (Owner->EMPFramesRemaining)
Owner->Assign_Target(nullptr);

/**
* Iterate all the controls.
*/
Expand Down

0 comments on commit 834f3a5

Please sign in to comment.