mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-18 11:36:24 +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:
@@ -55,7 +55,7 @@
|
||||
PIPING_LAYER_DOUBLE_SHIFT(src, target_layer)
|
||||
|
||||
/obj/machinery/meter/process_atmos()
|
||||
if(!target)
|
||||
if(!(target?.flags_1 & INITIALIZED_1))
|
||||
icon_state = "meterX"
|
||||
return 0
|
||||
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
var/list/req_tech_surgeries = subtypesof(/datum/surgery)
|
||||
for(var/i in req_tech_surgeries)
|
||||
var/datum/surgery/beep = i
|
||||
if(beep.requires_tech)
|
||||
if(initial(beep.requires_tech))
|
||||
surgeries += beep
|
||||
|
||||
//INFO
|
||||
|
||||
Reference in New Issue
Block a user