Skip to content

Commit

Permalink
Fix comms sabotage resetting the task bar
Browse files Browse the repository at this point in the history
  • Loading branch information
NotMyWing committed Dec 11, 2020
1 parent 5466378 commit 9ba7629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/gamemodes/amongus/gamemode/vgui/vgui_hud.moon
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ hud.Think = =>
\SetText " " .. TRANSLATE "tasks.totalCompleted.sabotaged"
\SetColor Color 255, 64, 64

@SetTaskbarValue 0
@taskbar\AlphaTo 0, 1

-- Comms have been fixed.
-- Restore the task list and remove the blinker.
Expand All @@ -704,6 +704,8 @@ hud.Think = =>
\SetText " " .. TRANSLATE "tasks.totalCompleted"
\SetColor Color 255, 255, 255

@taskbar\AlphaTo 255, 1

@__oldCommsSabotaged = commsSabotaged

return vgui.RegisterTable hud, "Panel"

0 comments on commit 9ba7629

Please sign in to comment.