Makes shieldwall generators actually work and not drain the CPU (#18613)

* Fixes shieldwallgen's
Also makes them not suck performance like hell

* Update code/modules/power/singularity/singularity.dm

* Update code/modules/power/singularity/singularity.dm

* Makes walls stop the shieldwallgen from making walls

* Review changes
Make shieldgen not process when inactive
This commit is contained in:
Farie82
2022-08-15 20:29:21 +01:00
committed by GitHub
parent 79139cc0a8
commit 3dc47a125d
3 changed files with 113 additions and 170 deletions
@@ -371,7 +371,7 @@
return 0
else if(locate(/obj/machinery/shieldwallgen) in T)
var/obj/machinery/shieldwallgen/S = locate(/obj/machinery/shieldwallgen) in T
if(S && S.active)
if(S?.activated)
return 0
return 1