mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 20:45:28 +01:00
[MIRROR] Windows "lag" fix (#2093)
* Windows "lag" fix (#55372) Change to Move() to make only anchored windows to update the air when they move through the turfs (should prevent abusable situations of lag machines too) Makes singulo from stage 2 unanchor windows when pulling them (low performance increment for singulo(?)) Why It's Good For The Game less abusable lag good Changelog cl tweak: only anchored windows call move_update_turf() tweak: singularities from stage 2 and over will unanchor windows /cl * Windows "lag" fix Co-authored-by: Ghilker <42839747+Ghilker@users.noreply.github.com>
This commit is contained in:
@@ -92,6 +92,8 @@
|
||||
|
||||
/obj/structure/window/singularity_pull(S, current_size)
|
||||
..()
|
||||
if(anchored && current_size >= STAGE_TWO)
|
||||
set_anchored(FALSE)
|
||||
if(current_size >= STAGE_FIVE)
|
||||
deconstruct(FALSE)
|
||||
|
||||
@@ -310,7 +312,8 @@
|
||||
var/turf/T = loc
|
||||
. = ..()
|
||||
setDir(ini_dir)
|
||||
move_update_air(T)
|
||||
if(anchored)
|
||||
move_update_air(T)
|
||||
|
||||
/obj/structure/window/CanAtmosPass(turf/T)
|
||||
if(!anchored || !density)
|
||||
|
||||
Reference in New Issue
Block a user