Skip to content

Commit

Permalink
If no secrets, don't play sfx_barexp during intermission
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Oct 14, 2021
1 parent 723052c commit 0ba43d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@
* Blood splats are now translucent when the `r_translucency` CVAR is `on` and the `r_textures` CVAR is `off`.
* Turning left and right using a gamepad is now smoother.
* A bug has been fixed whereby switching from a window to fullscreen by pressing <kbd><b>ALT</b></kbd> + <kbd><b>ENTER</b></kbd> would affect the aspect ratio if the `vid_borderlesswindow` CVAR was `off`.
* Translucent things now cast more translucent shadows.
* Dithered lighting is now cast on *BOOM*-compatible translucent wall textures.
* Things on scrolling floors will no longer continue to move while the menu is open.
* When the player drops down from a great height, their weapon will no longer move too far downwards when the `weaponbounce` CVAR is `on`.
* Translucent things now cast more translucent shadows.

![](https://github.com/bradharding/www.doomretro.com/raw/master/wiki/bigdivider.png)

Expand Down
5 changes: 4 additions & 1 deletion src/wi_stuff.c
Original file line number Diff line number Diff line change
Expand Up @@ -874,7 +874,10 @@ static void WI_UpdateStats(void)
if (cnt_secret >= (wbs->ssecret * 100) / wbs->maxsecret)
{
cnt_secret = (wbs->ssecret * 100) / wbs->maxsecret;
S_StartSound(NULL, sfx_barexp);

if (totalsecrets)
S_StartSound(NULL, sfx_barexp);

sp_state++;
}
}
Expand Down

0 comments on commit 0ba43d1

Please sign in to comment.