mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +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)
|
||||
|
||||
Reference in New Issue
Block a user