Pet Collar Bug Fix

If you had Ian with a pet collar name like spot, and you gave him say a wizard name, then he would deafault to his real_name over his name, and making it impossible to restore the name on the collar.
This commit is contained in:
Robertha89
2015-06-24 03:20:32 +02:00
parent 05c3b89a3f
commit fc6ec4982f
@@ -14,6 +14,7 @@
user << "<span class='notice'>You put the [P] around [src]'s neck.</span>"
if(P.tagname)
name = P.tagname
real_name = P.tagname
qdel(P)
return
if(istype(O, /obj/item/weapon/newspaper))
@@ -43,4 +44,4 @@
/mob/living/simple_animal/pet/regenerate_icons()
overlays.Cut()
overlays += collar
overlays += pettag
overlays += pettag