Skip to content

Commit

Permalink
Update click.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Git-Nivrak committed Oct 6, 2023
1 parent 2dbd52b commit 950deac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/_onclick/click.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 950deac

Please sign in to comment.