Do not unmute sound when hit by enemy bullet

Right now it forcefully sets sound instead of using the SetSnd function
that checks if audio is muted.
This commit is contained in:
2022-08-13 21:33:40 +02:00
parent 9403d64739
commit aa5ebfcf9f
+1 -1
View File
@@ -193,7 +193,7 @@ U0 AddLaser(F64 delta, F64 dmg, I32 width) {
U0 DmgPlayer(F64 dmg) {
if (!gW.levelTransition) {
blur_ttl = 0.07;
playSnd = SND_PLAYER_DMG;
SetSnd(SND_PLAYER_DMG);
gW.player.health -= dmg;
if (gW.player.health < 0.0)
gW.player.health = 0.0;