check for open panel in update_icon

This commit is contained in:
lass9030
2018-11-09 14:05:11 +01:00
parent 137072881e
commit cebd075aa8
+3 -1
View File
@@ -403,7 +403,9 @@ For the other part of the code, check silicon say.dm. Particularly robot talk.*/
/obj/machinery/hologram/holopad/update_icon()
var/total_users = LAZYLEN(masters) + LAZYLEN(holo_calls)
if(ringing)
if(icon_state == "holopad_open")
return
else if(ringing)
icon_state = "holopad_ringing"
else if(total_users)
icon_state = "holopad1"