Skip to content

Commit 3bdd29c

Browse files
authored
kinesis bug (#1135)
1 parent 33e735c commit 3bdd29c

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

code/_onclick/hud/screen_objects.dm

+6-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535

3636
/// If set to TRUE, mobs that do not own this hud cannot click this screen object.
3737
var/private_screen = TRUE
38+
/// If set to TRUE, call atom/Click()
39+
var/default_click = FALSE
3840

3941
/atom/movable/screen/Initialize(mapload, datum/hud/hud_owner)
4042
. = ..()
@@ -55,7 +57,10 @@
5557
if(!can_usr_use(usr))
5658
return TRUE
5759

58-
SEND_SIGNAL(src, COMSIG_CLICK, location, control, params, usr)
60+
if(default_click)
61+
..()
62+
else
63+
SEND_SIGNAL(src, COMSIG_CLICK, location, control, params, usr)
5964

6065
/atom/movable/screen/examine(mob/user)
6166
return list()

code/game/objects/effects/cursor_catcher.dm

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
plane = HUD_PLANE
55
mouse_opacity = MOUSE_OPACITY_ICON
66
private_screen = FALSE
7+
default_click = TRUE
78
/// The mob whose cursor we are tracking.
89
var/mob/owner
910
/// Client view size of the scoping mob.

0 commit comments

Comments
 (0)