mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 09:05:11 +01:00
fixes advanced proximity sensors field calculations (#86735)
## About The Pull Request setting full_recalc to false would delete the entire field. setting it to true would double what it was meant to be ## Why It's Good For The Game fixes advanced proximity sensors field calculations ## Changelog 🆑 /🆑
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
var/list/old_edge_turfs = edge_turfs
|
||||
field_turfs = new_turfs[FIELD_TURFS_KEY]
|
||||
edge_turfs = new_turfs[EDGE_TURFS_KEY]
|
||||
if(!full_recalc)
|
||||
if(full_recalc)
|
||||
field_turfs = list()
|
||||
edge_turfs = list()
|
||||
|
||||
@@ -62,12 +62,11 @@
|
||||
for(var/turf/new_turf as anything in field_turfs - old_field_turfs)
|
||||
if(QDELETED(src))
|
||||
return
|
||||
field_turfs += new_turf
|
||||
setup_field_turf(new_turf)
|
||||
|
||||
for(var/turf/new_turf as anything in edge_turfs - old_edge_turfs)
|
||||
if(QDELETED(src))
|
||||
return
|
||||
edge_turfs += new_turf
|
||||
setup_edge_turf(new_turf)
|
||||
|
||||
/datum/proximity_monitor/advanced/on_initialized(turf/location, atom/created, init_flags)
|
||||
|
||||
Reference in New Issue
Block a user