Skip to content

Commit

Permalink
Click catcher fix (#15864)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lumipharon authored May 15, 2024
1 parent 0934f40 commit 3ab1520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
4 changes: 2 additions & 2 deletions code/datums/atom_hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ GLOBAL_LIST_INIT_TYPED(huds, /datum/atom_hud, list(
return


///Sets up the click_catcher for the client
/mob/proc/add_click_catcher()
client.screen += client.void

client?.apply_clickcatcher()

/mob/new_player/add_click_catcher()
return
13 changes: 4 additions & 9 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,6 @@

send_resources()

generate_clickcatcher()
apply_clickcatcher()

if(prefs.lastchangelog != GLOB.changelog_hash) //bolds the changelog button on the interface so we know there are updates.
Expand Down Expand Up @@ -903,15 +902,11 @@
winset(src, "mainwindow", "is-maximized=true")


/client/proc/generate_clickcatcher()
if(void)
return
void = new()
screen += void


///Creates and applies a clickcatcher
/client/proc/apply_clickcatcher()
generate_clickcatcher()
if(!void)
void = new()
screen |= void
var/list/actualview = getviewsize(view)
void.UpdateGreed(actualview[1], actualview[2])

Expand Down

0 comments on commit 3ab1520

Please sign in to comment.