Skip to content

Commit

Permalink
Fixes AI photo taking and printing (tgstation#39623)
Browse files Browse the repository at this point in the history
  • Loading branch information
YPOQ authored and ShizCalev committed Aug 10, 2018
1 parent c6cad60 commit 85ea122
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/modules/paperwork/photocopier.dm
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@
to_chat(usr, "<span class='boldannounce'>No images saved</span>")
return
var/datum/picture/selection = tempAI.aicamera.selectpicture(usr)
var/obj/item/photo = new(loc, selection)
var/obj/item/photo/photo = new(loc, selection)
photo.pixel_x = rand(-10, 10)
photo.pixel_y = rand(-10, 10)
toner -= 5 //AI prints color pictures only, thus they can do it more efficiently
Expand Down
2 changes: 1 addition & 1 deletion code/modules/photography/camera/camera.dm
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
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)
if((ai_user && GLOB.cameranet.checkTurfVis(T)) || (T in seen))
turfs += T
for(var/mob/M in T)
mobs += M
Expand Down

0 comments on commit 85ea122

Please sign in to comment.