mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +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.
|
||||
// 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/cb = T.corners[4] || dummy_lighting_corner
|
||||
var/datum/lighting_corner/ca = T.corners[1] || dummy_lighting_corner
|
||||
|
||||
var/datum/lighting_corner/cr = LAZYACCESS(T.corners,3) || dummy_lighting_corner
|
||||
var/datum/lighting_corner/cg = LAZYACCESS(T.corners,2) || 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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user