Fixes nearspace tiles not lighting up properly (#63017)

This commit is contained in:
LemonInTheDark
2021-12-02 23:29:29 -08:00
committed by GitHub
parent 212d0b7d92
commit 128367e924
2 changed files with 9 additions and 1 deletions
+3
View File
@@ -50,6 +50,9 @@
smoothing_flags |= SMOOTH_OBJ
SET_BITFLAG_LIST(canSmoothWith)
var/area/our_area = loc
if(our_area.area_has_base_lighting && always_lit) //Only provide your own lighting if the area doesn't for you
add_overlay(GLOB.fullbright_overlay)
if(requires_activation)
SSair.add_to_active(src, TRUE)
+6 -1
View File
@@ -83,6 +83,10 @@ GLOBAL_LIST_EMPTY(station_turfs)
* Turf Initialize
*
* Doesn't call parent, see [/atom/proc/Initialize]
* Please note, space tiles do not run this code.
* This is done because it's called so often that any extra code just slows things down too much
* If you add something relevant here add it there too
* [/turf/open/space/Initialize]
*/
/turf/Initialize(mapload)
SHOULD_CALL_PARENT(FALSE)
@@ -113,7 +117,8 @@ GLOBAL_LIST_EMPTY(station_turfs)
for(var/atom/movable/content as anything in src)
Entered(content, null)
if(always_lit)
var/area/our_area = loc
if(our_area.area_has_base_lighting && always_lit) //Only provide your own lighting if the area doesn't for you
add_overlay(GLOB.fullbright_overlay)
if(requires_activation)