Skip to content

Commit

Permalink
fix small click bug (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapu1178 authored Jun 10, 2024
1 parent 7934e41 commit b0be365
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/_onclick/hud/screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,13 @@


/atom/movable/screen/inventory/hand/Click(location, control, params)
SHOULD_CALL_PARENT(FALSE)
// At this point in client Click() code we have passed the 1/10 sec check and little else
// We don't even know if it's a middle click
. = ..()
if(!can_usr_use(usr))
return FALSE
return TRUE

SEND_SIGNAL(src, COMSIG_CLICK, location, control, params, usr)

var/mob/user = hud?.mymob
if(world.time <= user.next_move)
Expand Down

0 comments on commit b0be365

Please sign in to comment.