mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-24 21:48:39 +01:00
Fixes multi-z photography (#49287)
* Fixes multi-z photography * Update code/modules/photography/camera/camera.dm Co-Authored-By: Jordan Brown <Cyberboss@users.noreply.github.com> * Removes unnecessary var * Close those parentheses Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>
This commit is contained in:
@@ -180,8 +180,14 @@
|
||||
var/list/mobs = list()
|
||||
var/blueprints = FALSE
|
||||
var/clone_area = SSmapping.RequestBlockReservation(size_x * 2 + 1, size_y * 2 + 1)
|
||||
for(var/turf/T in block(locate(target_turf.x - size_x, target_turf.y - size_y, target_turf.z), locate(target_turf.x + size_x, target_turf.y + size_y, target_turf.z)))
|
||||
if((ai_user && GLOB.cameranet.checkTurfVis(T)) || (T in seen))
|
||||
for(var/turf/placeholder in block(locate(target_turf.x - size_x, target_turf.y - size_y, target_turf.z), locate(target_turf.x + size_x, target_turf.y + size_y, target_turf.z)))
|
||||
var/turf/T = placeholder
|
||||
while(istype(T, /turf/open/openspace)) //Multi-z photography
|
||||
T = SSmapping.get_turf_below(T)
|
||||
if(!T)
|
||||
break
|
||||
|
||||
if(T && ((ai_user && GLOB.cameranet.checkTurfVis(placeholder)) || (placeholder in seen)))
|
||||
turfs += T
|
||||
for(var/mob/M in T)
|
||||
mobs += M
|
||||
|
||||
Reference in New Issue
Block a user