mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-23 13:05:44 +01:00
Turrets create less unnecessary timers (#9685)
This commit is contained in:
@@ -496,8 +496,9 @@
|
||||
|
||||
if(!tryToShootAt(targets))
|
||||
if(!tryToShootAt(secondarytargets) && !resetting) // if no valid targets, go for secondary targets
|
||||
resetting = TRUE
|
||||
addtimer(CALLBACK(src, .proc/reset), 6 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE) // no valid targets, close the cover
|
||||
if(raised || raising) // we've already reset
|
||||
resetting = TRUE
|
||||
addtimer(CALLBACK(src, .proc/reset), 6 SECONDS, TIMER_UNIQUE | TIMER_OVERRIDE) // no valid targets, close the cover
|
||||
|
||||
if(targets.len || secondarytargets.len)
|
||||
if(!fast_processing)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
author: mikomyazaki
|
||||
|
||||
delete-after: True
|
||||
|
||||
changes:
|
||||
- bugfix: "Turrets no longer constantly try to reset themselves, even when in a dormant state."
|
||||
Reference in New Issue
Block a user