Fix for Issue 245 by Quarxink

http://code.google.com/p/tgstation13/issues/detail?id=245#c0

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2704 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
Xenusicelon
2011-12-16 21:04:20 +00:00
parent ebb1905879
commit 419f25c3df
2 changed files with 226 additions and 1 deletions
+4 -1
View File
@@ -65,7 +65,10 @@
if (istype(target, /obj/item))
var/obj/item/O = target
if (src.amount > 1)
if(!istype(loc,/turf))
user << "\red You need to place the item on the ground before wrapping it!"
return
else if (src.amount > 1)
var/obj/item/smallDelivery/P = new /obj/item/smallDelivery(get_turf(O.loc))
P.wrapped = O
O.loc = P