Fix cameras again (#2140)

changes:

Fixed a bug where pictures from cameras would be black if the player clicked on something that was not a turf.
This commit is contained in:
Lohikar
2017-05-01 11:30:28 -05:00
committed by skull132
parent 15a8f0db87
commit df9394af4f
2 changed files with 5 additions and 1 deletions

View File

@@ -204,7 +204,7 @@ var/global/photo_count = 0
return TRUE // DVIEW will do sanity checks, we've got no special checks.
/obj/item/device/camera/proc/captureimage(atom/target, mob/living/user, flag)
var/obj/item/weapon/photo/p = createpicture(target, user, flag)
var/obj/item/weapon/photo/p = createpicture(get_turf(target), user, flag)
printpicture(user, p)
/obj/item/device/camera/proc/createpicture(atom/target, mob/living/user, flag)