mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-31 22:19:44 +01:00
Revert "Fix #400"
This reverts commit cf5ad166e3
.
My implementation will make it so single-case patches like this commit
won't be necessary anymore (there's no need to add a special-case check
for game.musicmuted, the way that I'm gonna do it). In fact, it's better
if I just revert the commit entirely.
This commit is contained in:
parent
7b7c7b2dc7
commit
ba04c361c6
1 changed files with 1 additions and 5 deletions
|
@ -5,7 +5,6 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#include "BinaryBlob.h"
|
||||
#include "Game.h"
|
||||
#include "Map.h"
|
||||
#include "UtilityClass.h"
|
||||
|
||||
|
@ -265,11 +264,8 @@ void musicclass::fadeout()
|
|||
|
||||
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;
|
||||
if (!game.musicmuted) Mix_VolumeMusic(musicVolume);
|
||||
Mix_VolumeMusic(musicVolume);
|
||||
if (musicVolume >= MIX_MAX_VOLUME)
|
||||
{
|
||||
m_doFadeInVol = false;
|
||||
|
|
Loading…
Reference in a new issue