Skip to content

Commit

Permalink
Fix music not properly fading in again
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbi committed Mar 20, 2015
1 parent 7be55d4 commit d794aac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/sound_manager.cpp
Expand Up @@ -303,7 +303,7 @@ SoundManager::play_music(const std::string& filename, bool fade)
void
SoundManager::pause_music(float fadetime)
{
if(music_source == NULL || !music_source->playing())
if(music_source == NULL)
return;

if(fadetime > 0) {
Expand All @@ -318,7 +318,7 @@ SoundManager::pause_music(float fadetime)
void
SoundManager::resume_music(float fadetime)
{
if(music_source == NULL || !music_source->paused())
if(music_source == NULL)
return;

if(fadetime > 0) {
Expand Down

0 comments on commit d794aac

Please sign in to comment.