diff --git a/code/game/objects/structures/signs.dm b/code/game/objects/structures/signs.dm index d7f5f2c7d21..54f6dd7dc91 100644 --- a/code/game/objects/structures/signs.dm +++ b/code/game/objects/structures/signs.dm @@ -39,11 +39,13 @@ w_class = ITEMSIZE_HUGE var/sign_state = "" -/obj/item/sign/attackby(obj/item/tool as obj, mob/user as mob) // Construction. +/obj/item/sign/attackby(obj/item/tool, mob/user) // Construction. if(tool.isscrewdriver() && isturf(user.loc)) var/direction = input("In which direction?", "Select direction.") in list("North", "East", "South", "West", "Cancel") if(direction == "Cancel") return - var/obj/structure/sign/S = new(user.loc) + if(QDELETED(src)) //Prevents spawning multiple new signs with queued dialogues + return + var/obj/structure/sign/S = new(get_turf(user)) switch(direction) if("North") S.pixel_y = 32 diff --git a/html/changelogs/doxxmedearly-signdupe_fix.yml b/html/changelogs/doxxmedearly-signdupe_fix.yml new file mode 100644 index 00000000000..3bbbb59886a --- /dev/null +++ b/html/changelogs/doxxmedearly-signdupe_fix.yml @@ -0,0 +1,4 @@ +author: Doxxmedearly +delete-after: True +changes: + - bugfix: "You can no longer duplicate signs by queueing up multiple dialogue boxes."