mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Duplicates the speed of the gameticker!
The emtiter beams were holding back the gameticker, 0.3 seconds per beam, now the sleep() is replaced with a spawn() instead. This will add lag due to everything being faster.
This commit is contained in:
@@ -71,13 +71,13 @@ var/list/beam_master = list()
|
|||||||
..()
|
..()
|
||||||
|
|
||||||
proc/cleanup(reference) //Waits .3 seconds then removes the overlay.
|
proc/cleanup(reference) //Waits .3 seconds then removes the overlay.
|
||||||
src = null
|
src = null //we're getting deleted! this will keep the code running
|
||||||
sleep(3)
|
spawn(3)
|
||||||
var/list/turf_master = beam_master[reference]
|
var/list/turf_master = beam_master[reference]
|
||||||
for(var/laser_state in turf_master)
|
for(var/laser_state in turf_master)
|
||||||
var/list/turfs = turf_master[laser_state]
|
var/list/turfs = turf_master[laser_state]
|
||||||
for(var/turf/T in turfs)
|
for(var/turf/T in turfs)
|
||||||
T.overlays -= beam_master[laser_state]
|
T.overlays -= beam_master[laser_state]
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/item/projectile/beam/practice
|
/obj/item/projectile/beam/practice
|
||||||
|
|||||||
Reference in New Issue
Block a user