Airlocks should no longer be temporarily electrified for the rest of the round.

Airlocks are no longer electrified for as long as the round has been going when EMPd.
This commit is contained in:
PsiOmegaDelta
2015-10-20 08:31:40 +02:00
parent a60103982b
commit 2a936d247d

View File

@@ -1067,8 +1067,8 @@ About the new airlock wires panel:
/obj/machinery/door/airlock/emp_act(var/severity)
if(prob(40/severity))
var/duration = world.time + SecondsToTicks(30 / severity)
if(duration > electrified_until)
var/duration = SecondsToTicks(30 / severity)
if(electrified_until > -1 && (duration + world.time) > electrified_until)
electrify(duration)
..()