Skip to content

Commit

Permalink
Merge pull request tgstation#25679 from Cyberboss/FixATurret
Browse files Browse the repository at this point in the history
Fixes a runtime with portaturrets
  • Loading branch information
ChangelingRain authored Apr 2, 2017
2 parents 3f54c33 + 8f0a8e4 commit 7430d16
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions code/game/machinery/porta_turret/portable_turret.dm
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,11 @@
if(prob(30))
spark_system.start()
if(on && !attacked && !emagged)
attacked = 1
spawn(60)
attacked = 0
attacked = TRUE
addtimer(CALLBACK(src, .proc/reset_attacked), 60)

/obj/machinery/porta_turret/proc/reset_attacked()
attacked = FALSE

/obj/machinery/porta_turret/deconstruct(disassembled = TRUE)
qdel(src)
Expand Down Expand Up @@ -911,4 +913,4 @@
if(istype(P, /obj/item/projectile/beam/lasertag/bluetag))
on = 0
spawn(100)
on = 1
on = 1

0 comments on commit 7430d16

Please sign in to comment.