Merge pull request #5517 from Anewbe/hud_invis

Low alpha now makes HUDs and tooltips not show up on you
This commit is contained in:
Atermonera
2018-08-24 15:47:22 -07:00
committed by GitHub
3 changed files with 13 additions and 3 deletions
+4
View File
@@ -52,6 +52,10 @@
var/obj/screen/plane_master/PM = plane_masters[which]
if(!PM)
crash_with("Tried to alter [which] in plane_holder on [my_mob]!")
if(my_mob.alpha <= EFFECTIVE_INVIS)
state = FALSE
PM.set_visibility(state)
if(PM.sub_planes)
var/list/subplanes = PM.sub_planes