Fix for wardrobes and lockers.

Fix for Fingerprints.
This commit is contained in:
SkyMarshal
2012-01-31 17:58:22 -07:00
parent 80be80a4c1
commit 6e3aef823a
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -107,16 +107,16 @@
prints = L[2]
break
else
src.fingerprints[i] = L[1] + "&" + stars(L[2], rand(80,90))
src.fingerprints[i] = "1=" + L[1] + "&2=" + stars(L[2], rand(80,90))
else
var/turf/T = get_turf(src)
for (var/mob/N in world)
if (N.client && N.client.holder)
N << "<span class=\"gfartadmin\"><span class=\"prefix\">ERROR:</span><span class=\"message\">Fingerprint application failed! Important data: [src.name] at [T.x], [T.y], [T.z] with the print string [L[1]]</span></span>"
if(new_prints)
src.fingerprints[new_prints] = text("[]&[]", md5(H.dna.uni_identity), stringmerge(prints,stars(md5(H.dna.uni_identity), rand(15,30))))
src.fingerprints[new_prints] = text("1=[]&2=[]", md5(H.dna.uni_identity), stringmerge(prints,stars(md5(H.dna.uni_identity), rand(15,30))))
else if(new_prints == 0)
src.fingerprints += text("[]&[]", md5(H.dna.uni_identity), stars(md5(H.dna.uni_identity), rand(15,30)))
src.fingerprints += text("1=[]&2=[]", md5(H.dna.uni_identity), stars(md5(H.dna.uni_identity), rand(15,30)))
return 1
else
if(src.fingerprintslast != M.key)
+1 -1
View File
@@ -221,7 +221,7 @@
if (I.contents.len < 20)
if(istype(O,/obj/item/wardrobe))
continue
if(O.anchored || O.density)
if(O.anchored || O.density || istype(O,/obj/structure))
continue
I.contents += O;
else