mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Fix #400
This commit is contained in:
parent
a4c1ffee12
commit
cf5ad166e3
1 changed files with 5 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "BinaryBlob.h"
|
#include "BinaryBlob.h"
|
||||||
|
#include "Game.h"
|
||||||
#include "Map.h"
|
#include "Map.h"
|
||||||
#include "UtilityClass.h"
|
#include "UtilityClass.h"
|
||||||
|
|
||||||
|
@ -249,8 +250,11 @@ void musicclass::fadeout()
|
||||||
|
|
||||||
void musicclass::processmusicfadein()
|
void musicclass::processmusicfadein()
|
||||||
{
|
{
|
||||||
|
// Instead of returning early if music is muted, this should still increase `musicVolume`
|
||||||
|
// so that anything that relies on this won't break. We'll simply just not set the volume
|
||||||
|
// if the music is muted
|
||||||
musicVolume += FadeVolAmountPerFrame;
|
musicVolume += FadeVolAmountPerFrame;
|
||||||
Mix_VolumeMusic(musicVolume);
|
if (!game.musicmuted) Mix_VolumeMusic(musicVolume);
|
||||||
if (musicVolume >= MIX_MAX_VOLUME)
|
if (musicVolume >= MIX_MAX_VOLUME)
|
||||||
{
|
{
|
||||||
m_doFadeInVol = false;
|
m_doFadeInVol = false;
|
||||||
|
|
Loading…
Reference in a new issue