Skip to content

Commit

Permalink
Fix deleting the cached hover overlay on mouse out
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceManiac committed Aug 21, 2018
1 parent f5fee4f commit 04e268b
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions code/_onclick/hud/screen_objects.dm
Original file line number Diff line number Diff line change
Expand Up @@ -489,14 +489,9 @@
hover_overlay.icon_state = choice
add_overlay(hover_overlay)


/obj/screen/zone_sel/MouseExited(location, control, params)
if(isobserver(usr))
return

if(hover_overlay)
if(!isobserver(usr) && hover_overlay)
cut_overlay(hover_overlay)
hover_overlay = null

/obj/screen/zone_sel/proc/get_zone_at(icon_x, icon_y)
switch(icon_y)
Expand Down

0 comments on commit 04e268b

Please sign in to comment.