Fixes two anomaly bugs. One: bluespace anomaly doing translocation despite being destroyed. Two: anomaly not checking for the signal code.

This commit is contained in:
phil235
2014-10-22 17:39:09 +02:00
parent 3e30a7fbab
commit 2a0eeea1fb
3 changed files with 6 additions and 3 deletions

View File

@@ -178,7 +178,10 @@ Code:
item_state = "electronic"
/obj/item/device/assembly/signaler/anomaly/receive_signal(datum/signal/signal)
..()
if(!signal)
return 0
if(signal.encryption != code)
return 0
for(var/obj/effect/anomaly/A in orange(0, src))
A.anomalyNeutralize()

View File

@@ -21,7 +21,7 @@
/datum/round_event/anomaly/anomaly_bluespace/end()
if(newAnomaly)//If it hasn't been neutralized, it's time to warp half the station away jeez
if(newAnomaly.loc)//If it hasn't been neutralized, it's time to warp half the station away jeez
var/turf/T = pick(get_area_turfs(impact_area))
if(T)
// Calculate new position (searches through beacons in world)

View File

@@ -21,6 +21,6 @@
/datum/round_event/anomaly/anomaly_flux/end()
if(newAnomaly)//If it hasn't been neutralized, it's time to blow up.
if(newAnomaly.loc)//If it hasn't been neutralized, it's time to blow up.
explosion(newAnomaly, -1, 3, 5, 5)
qdel(newAnomaly)