mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Fix 3 server errors (#4578)
* POLARIS: Lighting runtime for accessing a list that might not exist * POLARIS: Lazily clear these lists * POLARIS: Just return the normal hint in Destroy on plane holders
This commit is contained in:
@@ -53,10 +53,11 @@
|
|||||||
|
|
||||||
// See LIGHTING_CORNER_DIAGONAL in lighting_corner.dm for why these values are what they are.
|
// See LIGHTING_CORNER_DIAGONAL in lighting_corner.dm for why these values are what they are.
|
||||||
// No I seriously cannot think of a more efficient method, fuck off Comic.
|
// No I seriously cannot think of a more efficient method, fuck off Comic.
|
||||||
var/datum/lighting_corner/cr = T.corners[3] || dummy_lighting_corner
|
|
||||||
var/datum/lighting_corner/cg = T.corners[2] || dummy_lighting_corner
|
var/datum/lighting_corner/cr = LAZYACCESS(T.corners,3) || dummy_lighting_corner
|
||||||
var/datum/lighting_corner/cb = T.corners[4] || dummy_lighting_corner
|
var/datum/lighting_corner/cg = LAZYACCESS(T.corners,2) || dummy_lighting_corner
|
||||||
var/datum/lighting_corner/ca = T.corners[1] || dummy_lighting_corner
|
var/datum/lighting_corner/cb = LAZYACCESS(T.corners,4) || dummy_lighting_corner
|
||||||
|
var/datum/lighting_corner/ca = LAZYACCESS(T.corners,1) || dummy_lighting_corner
|
||||||
|
|
||||||
var/max = max(cr.cache_mx, cg.cache_mx, cb.cache_mx, ca.cache_mx)
|
var/max = max(cr.cache_mx, cg.cache_mx, cb.cache_mx, ca.cache_mx)
|
||||||
|
|
||||||
|
|||||||
@@ -57,11 +57,11 @@
|
|||||||
for(var/organ in organs)
|
for(var/organ in organs)
|
||||||
qdel(organ)
|
qdel(organ)
|
||||||
|
|
||||||
list_layers.Cut()
|
LAZYCLEARLIST(list_layers)
|
||||||
list_layers = null //Be free!
|
list_layers = null //Be free!
|
||||||
list_body.Cut()
|
LAZYCLEARLIST(list_body)
|
||||||
list_body = null
|
list_body = null
|
||||||
list_huds.Cut()
|
LAZYCLEARLIST(list_huds)
|
||||||
list_huds = null
|
list_huds = null
|
||||||
|
|
||||||
return ..()
|
return ..()
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
my_mob.plane_holder = null
|
my_mob.plane_holder = null
|
||||||
my_mob = null
|
my_mob = null
|
||||||
plane_masters.Cut() //Goodbye my children, be free
|
plane_masters.Cut() //Goodbye my children, be free
|
||||||
..() //We will get qdel'd, as there will not be references to us, then our planelets will disappear on their own.
|
return ..()
|
||||||
|
|
||||||
/datum/plane_holder/proc/set_vis(var/which = null, var/state = FALSE)
|
/datum/plane_holder/proc/set_vis(var/which = null, var/state = FALSE)
|
||||||
ASSERT(which)
|
ASSERT(which)
|
||||||
|
|||||||
Reference in New Issue
Block a user