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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user