From d131588cf3327696ea3463ff4fe68635d8a33dde Mon Sep 17 00:00:00 2001 From: NamelessFairy <40036527+NamelessFairy@users.noreply.github.com> Date: Fri, 17 Feb 2023 14:39:16 +0000 Subject: [PATCH] Fixes an inverted if check on false wall attackby code. (#73459) ## About The Pull Request #64428 made it so using a non-tool on a false wall that was closed would return the "You must wait until the door has stopped moving" message, this was caused by a flipped if statement so I've re-flipped it by changing it to an early return instead. ## Why It's Good For The Game Bug fix! ## Changelog :cl: fix: False walls will no longer tell you to wait until they've stopped moving when you use an item on them. /:cl: Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> --- code/game/objects/structures/false_walls.dm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/game/objects/structures/false_walls.dm b/code/game/objects/structures/false_walls.dm index a1e4a441626..729abad34f4 100644 --- a/code/game/objects/structures/false_walls.dm +++ b/code/game/objects/structures/false_walls.dm @@ -113,9 +113,9 @@ /obj/structure/falsewall/attackby(obj/item/W, mob/user, params) if(!opening) - to_chat(user, span_warning("You must wait until the door has stopped moving!")) - return - return ..() + return ..() + to_chat(user, span_warning("You must wait until the door has stopped moving!")) + return /obj/structure/falsewall/proc/dismantle(mob/user, disassembled=TRUE, obj/item/tool = null) user.visible_message(span_notice("[user] dismantles the false wall."), span_notice("You dismantle the false wall."))