mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-28 15:02:01 +00:00
- fixed: Loading a savegame with music switched off forced a restart of the map's default music
because starting an empty music was considered an error. SVN r2272 (trunk)
This commit is contained in:
parent
7bd741a644
commit
d875a0c674
2 changed files with 7 additions and 2 deletions
|
@ -122,8 +122,13 @@ bool FPlayList::ChangeList (const char *path)
|
||||||
// Path is relative; append it to the playlist directory.
|
// Path is relative; append it to the playlist directory.
|
||||||
song = playlistdir + song;
|
song = playlistdir + song;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Just to make sure
|
||||||
|
if (song.IsNotEmpty())
|
||||||
|
{
|
||||||
Songs.Push(song);
|
Songs.Push(song);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
fclose (file);
|
fclose (file);
|
||||||
|
|
||||||
return Songs.Size() != 0;
|
return Songs.Size() != 0;
|
||||||
|
|
|
@ -2327,7 +2327,7 @@ bool S_ChangeMusic (const char *musicname, int order, bool looping, bool force)
|
||||||
// Don't choke if the map doesn't have a song attached
|
// Don't choke if the map doesn't have a song attached
|
||||||
S_StopMusic (true);
|
S_StopMusic (true);
|
||||||
mus_playing.name = "";
|
mus_playing.name = "";
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
FString DEH_Music;
|
FString DEH_Music;
|
||||||
|
|
Loading…
Reference in a new issue