Merge pull request #5300 from Fox-McCloud/proper-portals

Wormhole Event Fixup
This commit is contained in:
TheDZD
2016-08-03 10:21:52 -04:00
committed by GitHub
+2 -3
View File
@@ -17,7 +17,7 @@
if((T.z in config.station_levels))
pick_turfs += T
for(var/i = 1, i <= number_of_wormholes, i++)
for(var/i in 1 to number_of_wormholes)
var/turf/T = pick(pick_turfs)
wormholes += new /obj/effect/portal/wormhole(T, null, null, -1)
@@ -31,9 +31,8 @@
if(T) O.loc = T
/datum/event/wormholes/end()
portals.Remove(wormholes)
for(var/obj/effect/portal/wormhole/O in wormholes)
O.loc = null
qdel(O)
wormholes.Cut()