Adds DropLocation(). To generally be preferred to get_turf() (#29814)

Fixes #29802

Unlike get_turf()this will sensibly pick if loc can be safely used
This commit is contained in:
Jordan Brown
2017-08-18 00:44:20 -04:00
committed by oranges
parent 076c533285
commit 728aefbd70
11 changed files with 36 additions and 21 deletions
@@ -24,7 +24,7 @@
if(!check_functionality())
return FALSE
var/obj/item/paper/P = new/obj/item/paper(get_turf(holder))
var/obj/item/paper/P = new/obj/item/paper(holder.drop_location())
// Damaged printer causes the resulting paper to be somewhat harder to read.
if(damage > damage_malfunction)