Miscellaneous Tweaks (#1720)

changes:

Refactored footstep sounds to use less operations & only calculate for human-types.
Improved the logging detail of the lighting profiler.
Fixed some shuttle corners that weren't correctly working with parallax space.
Converted get_turf() into a compiler macro.
Solars are now dynamically lit.
Silenced warning from lighting overlays pooling themselves when updated on a space tile.
Fixed a bug where securing a girder was instant when it was supposed to have a delay.
This commit is contained in:
Lohikar
2017-02-07 10:46:39 -06:00
committed by skull132
parent ed6dbee896
commit bc441ab9d6
20 changed files with 122 additions and 77 deletions

View File

@@ -32,6 +32,7 @@
update_overlay()
/atom/movable/lighting_overlay/Destroy()
L_PROF(loc, "overlay_destroy")
global.all_lighting_overlays -= src
global.lighting_update_overlays -= src
lighting_process.curr_overlays -= src
@@ -55,8 +56,9 @@
returnToPool(src)
return
if (T.is_space())
warning("A lighting overlay realised it was attached to a space tile and got pooled!")
if (istype(T, /turf/space))
// I mean, this happens often and doesn't do any harm. Might as well silence the warning.
//warning("A lighting overlay realised it was attached to a space tile and got pooled!")
returnToPool(src)
return
@@ -103,6 +105,7 @@
// Override here to prevent things accidentally moving around overlays.
/atom/movable/lighting_overlay/forceMove(atom/destination, var/no_tp=FALSE, var/harderforce = FALSE)
if(harderforce)
L_PROF(loc, "overlay_forcemove")
. = ..()
/atom/movable/lighting_overlay/resetVariables(...)