Stargazes wll also detect cloud turfs for their calculations

This commit is contained in:
Archie
2021-05-24 02:53:43 -03:00
parent 648d380594
commit 78808ad2b3
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)