Skip to content

Commit

Permalink
fix(status_display): fixes broken updating
Browse files Browse the repository at this point in the history
  • Loading branch information
TobyThorne authored Nov 8, 2023
1 parent 9aa3a50 commit 3598d2d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions code/game/machinery/status_display.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@

// timed process
/obj/machinery/status_display/Process()
if(stat == last_stat)
return
if(stat & NOPOWER)
last_stat = stat
if(overlays.len)
Expand Down Expand Up @@ -216,7 +214,7 @@
return

if(picture_state != state || force_update)
remove_display(FALSE)
remove_display(force_update)
picture_state = state
picture.icon_state = "[picture_state]"
picture_overlight.icon_state = "[picture_state]"
Expand All @@ -230,7 +228,7 @@
/obj/machinery/status_display/proc/update_display(line1, line2, force_update = FALSE)
var/new_text = {"<div style="font-size:[FONT_SIZE];color:[FONT_COLOR];font:'[FONT_STYLE]';text-align:center;" valign="top">[line1]<br>[line2]</div>"}
if(picture_overlight.maptext != new_text || force_update)
remove_display(FALSE)
remove_display(force_update)
picture_overlight.icon_state = "blank"
picture_overlight.maptext = new_text
overlays += picture_overlight
Expand Down

0 comments on commit 3598d2d

Please sign in to comment.