mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
Fixes DVIEW runtimes in preferences.
This commit is contained in:
@@ -1355,6 +1355,8 @@ GLOBAL_DATUM_INIT(dview_mob, /mob/dview, new)
|
|||||||
GLOB.dview_mob.see_invisible = invis_flags; \
|
GLOB.dview_mob.see_invisible = invis_flags; \
|
||||||
for(type in view(range, GLOB.dview_mob))
|
for(type in view(range, GLOB.dview_mob))
|
||||||
|
|
||||||
|
#define FOR_DVIEW_END GLOB.dview_mob.loc = null
|
||||||
|
|
||||||
//can a window be here, or is there a window blocking it?
|
//can a window be here, or is there a window blocking it?
|
||||||
/proc/valid_window_location(turf/T, dir_to_check)
|
/proc/valid_window_location(turf/T, dir_to_check)
|
||||||
if(!T)
|
if(!T)
|
||||||
|
|||||||
@@ -232,6 +232,7 @@
|
|||||||
spotlights+=L
|
spotlights+=L
|
||||||
continue
|
continue
|
||||||
continue
|
continue
|
||||||
|
FOR_DVIEW_END
|
||||||
|
|
||||||
/obj/machinery/disco/proc/hierofunk()
|
/obj/machinery/disco/proc/hierofunk()
|
||||||
for(var/i in 1 to 10)
|
for(var/i in 1 to 10)
|
||||||
|
|||||||
@@ -226,7 +226,7 @@
|
|||||||
|
|
||||||
LAZYADD(T.affecting_lights, src)
|
LAZYADD(T.affecting_lights, src)
|
||||||
affecting_turfs += T
|
affecting_turfs += T
|
||||||
|
FOR_DVIEW_END
|
||||||
update_gen++
|
update_gen++
|
||||||
|
|
||||||
/datum/light_source/proc/remove_lum()
|
/datum/light_source/proc/remove_lum()
|
||||||
@@ -267,6 +267,7 @@
|
|||||||
C = thing
|
C = thing
|
||||||
corners[C] = 0
|
corners[C] = 0
|
||||||
turfs += T
|
turfs += T
|
||||||
|
FOR_DVIEW_END
|
||||||
|
|
||||||
var/list/L = turfs - affecting_turfs // New turfs, add us to the affecting lights of them.
|
var/list/L = turfs - affecting_turfs // New turfs, add us to the affecting lights of them.
|
||||||
affecting_turfs += L
|
affecting_turfs += L
|
||||||
|
|||||||
Reference in New Issue
Block a user