Merge pull request #1201 from ArchieBeepBoop/stargazerfix

Makes Stargazers work on Layenia too
This commit is contained in:
Dahlular
2021-06-01 04:18:54 -06:00
committed by GitHub
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -35,6 +35,8 @@ GLOBAL_LIST_INIT(turfs_without_ground, typecacheof(list(
#define isspaceturf(A) (istype(A, /turf/open/space))
#define iscloudturf(A) (istype(A, /turf/open/chasm/cloud))
#define isfloorturf(A) (istype(A, /turf/open/floor))
#define isclosedturf(A) (istype(A, /turf/closed))
@@ -47,7 +47,7 @@
has_starlight = FALSE
else
for(var/turf/T in view(3, src))
if(isspaceturf(T))
if(isspaceturf(T) || iscloudturf(T))
has_starlight = TRUE
break
if(has_starlight && anchored)