Skip to content

Commit

Permalink
Fix hud text-shadow, round damage no enemy
Browse files Browse the repository at this point in the history
  • Loading branch information
solcloud committed Oct 8, 2023
1 parent 19363d6 commit 9e00d81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion www/assets/css/hud.css
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@
}

#hud section {
text-shadow: 0px 0px 2px var(--hud-color-shadow);
display: flex;
flex-direction: row;
height: 100%;
Expand All @@ -120,6 +119,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
text-shadow: 0 0 2px var(--hud-color-shadow);
}

#hud .right {
Expand Down Expand Up @@ -151,6 +151,7 @@
max-height: 1200px;
color: white;
overflow-y: auto;
text-shadow: none;
}

#hud #buy-menu, #hud #game-menu {
Expand Down Expand Up @@ -333,6 +334,7 @@
#hud #round-damage-stat {
font-size: 80%;
color: #ffffff;
text-shadow: none;
margin: 0.9rem 0;
}

Expand Down
2 changes: 1 addition & 1 deletion www/assets/js/hud/RoundDamageStat.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export class RoundDamageStat {
}

update(damage, enemyPlayers) {
if (damage === null) {
if (damage === null || !enemyPlayers.length) {
this.#element.innerHTML = ''
return
}
Expand Down

0 comments on commit 9e00d81

Please sign in to comment.