mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 12:05:59 +01:00
Runtimes fixes (#44885)
* fix meter work on un initialized pipe * fix runtime in process_cell whet it try to call to wrong type turf * fix roundstart runtime in debug sungery disc * fix return_air() runtime Runtime in pipes.dm, line 52: Cannot read null.air * s * Update surgery.dm * Update pipes.dm * Update meter.dm * Update LINDA_turf_tile.dm * Disable atmos processing in outer border on load. * Update map_template.dm * Update map_template.dm * Update map_template.dm * Update pipes.dm more runtimes for good of runtimes
This commit is contained in:
@@ -84,6 +84,13 @@
|
||||
if(T.y+height > world.maxy)
|
||||
return
|
||||
|
||||
var/list/border = block(locate(max(T.x-1, 1), max(T.y-1, 1), T.z),
|
||||
locate(min(T.x+width+1, world.maxx), min(T.y+height+1, world.maxy), T.z))
|
||||
for(var/L in border)
|
||||
var/turf/turf_to_disable = L
|
||||
SSair.remove_from_active(turf_to_disable) //stop processing turfs along the border to prevent runtimes, we return it in initTemplateBounds()
|
||||
turf_to_disable.atmos_adjacent_turfs?.Cut()
|
||||
|
||||
// Accept cached maps, but don't save them automatically - we don't want
|
||||
// ruins clogging up memory for the whole round.
|
||||
var/datum/parsed_map/parsed = cached_map || new(file(mappath))
|
||||
|
||||
Reference in New Issue
Block a user