Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit c5671dc

Browse files
committed
fixed dota 2 respawn layer again
1 parent eff5f1c commit c5671dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Project-Aurora/Project-Aurora/Profiles/Dota 2/Layers/Dota2RespawnLayerHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected override UserControl CreateControl()
6161
return new Control_Dota2RespawnLayer(this);
6262
}
6363

64-
private bool _empty = true;
64+
private bool _empty = false;
6565
public override EffectLayer Render(IGameState state)
6666
{
6767
if (state is GameState_Dota2)
@@ -73,6 +73,7 @@ public override EffectLayer Render(IGameState state)
7373
double percent = dota2state.Hero.SecondsToRespawn > 5 ? 0.0 : 1.0 - dota2state.Hero.SecondsToRespawn / 5.0;
7474
if (percent > 0)
7575
{
76+
_empty = false;
7677
_respawnLayer.Fill(Utils.ColorUtils.BlendColors(Color.Transparent, Properties.BackgroundColor, percent));
7778

7879
_respawnLayer.PercentEffect(Properties.RespawningColor,

0 commit comments

Comments
 (0)