From 950deac68affe775b8bc8088769c31b64db32b39 Mon Sep 17 00:00:00 2001 From: Git-Nivrak <59925169+Git-Nivrak@users.noreply.github.com> Date: Fri, 6 Oct 2023 20:38:15 +0300 Subject: [PATCH] Update click.dm --- code/_onclick/click.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/_onclick/click.dm b/code/_onclick/click.dm index 758a45674487..98792d1c59f6 100644 --- a/code/_onclick/click.dm +++ b/code/_onclick/click.dm @@ -126,7 +126,9 @@ if (!isturf(loc)) return - if(A.Adjacent(src) && src.a_intent == INTENT_GRAB && !W) + var/adjacent = A.Adjacent(src) + + if(adjacent && src.a_intent == INTENT_GRAB && !W) click_adjacent(A, W, mods) return @@ -135,7 +137,7 @@ next_move = world.time // If standing next to the atom clicked. - if(A.Adjacent(src)) + if(adjacent) click_adjacent(A, W, mods) return