From c94507576e1a7149cb22ce9dab89de646da2af0b Mon Sep 17 00:00:00 2001 From: Tlaltecuhtli <33834933+Tlaltecuhtli@users.noreply.github.com> Date: Sat, 29 Jun 2019 23:52:34 +0200 Subject: [PATCH] stacks no longer give you a pop up window when you alt click on one on the floor (#44691) cl tweak: stacks no longer give you a pop up window when you alt click on one on the floor /cl its rather obnoxious when you try to grab something from a tile (example after an explosion) which has some giant sprites of rod/tiles/metal and you want toalt click to see the tile content but instead you have to pixel snipe else you get a pop up window 99% of the time you want to grab part of a stack you do it in hand or in the bag anyway which have no effects from this pr --- code/game/objects/items/stacks/stack.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/objects/items/stacks/stack.dm b/code/game/objects/items/stacks/stack.dm index e06c8b15ba3..e987f2a1fde 100644 --- a/code/game/objects/items/stacks/stack.dm +++ b/code/game/objects/items/stacks/stack.dm @@ -355,6 +355,9 @@ . = ..() /obj/item/stack/AltClick(mob/living/user) + . = ..() + if(isturf(loc)) // to prevent people that are alt clicking a tile to see its content from getting undesidered pop ups + return if(!istype(user) || !user.canUseTopic(src, BE_CLOSE, ismonkey(user))) return if(is_cyborg)