Skip to content

Commit 9e00d81

Browse files
committed
Fix hud text-shadow, round damage no enemy
1 parent 19363d6 commit 9e00d81

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

www/assets/css/hud.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@
108108
}
109109

110110
#hud section {
111-
text-shadow: 0px 0px 2px var(--hud-color-shadow);
112111
display: flex;
113112
flex-direction: row;
114113
height: 100%;
@@ -120,6 +119,7 @@
120119
display: flex;
121120
flex-direction: column;
122121
justify-content: space-between;
122+
text-shadow: 0 0 2px var(--hud-color-shadow);
123123
}
124124

125125
#hud .right {
@@ -151,6 +151,7 @@
151151
max-height: 1200px;
152152
color: white;
153153
overflow-y: auto;
154+
text-shadow: none;
154155
}
155156

156157
#hud #buy-menu, #hud #game-menu {
@@ -333,6 +334,7 @@
333334
#hud #round-damage-stat {
334335
font-size: 80%;
335336
color: #ffffff;
337+
text-shadow: none;
336338
margin: 0.9rem 0;
337339
}
338340

www/assets/js/hud/RoundDamageStat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export class RoundDamageStat {
88
}
99

1010
update(damage, enemyPlayers) {
11-
if (damage === null) {
11+
if (damage === null || !enemyPlayers.length) {
1212
this.#element.innerHTML = ''
1313
return
1414
}

0 commit comments

Comments
 (0)