- a few remaining simple ones

This also removes a few pointless comments that popped up and consolidates setting a level's music into a subfuntion.
This commit is contained in:
Christoph Oelckers 2019-01-28 01:25:52 +01:00
commit a7746278a8
16 changed files with 19 additions and 30 deletions

View file

@ -544,8 +544,7 @@ void P_SerializeSounds(FLevelLocals *Level, FSerializer &arc)
if (arc.isReading())
{
if (!S_ChangeMusic(name, order))
if (Level->cdtrack == 0 || !S_ChangeCDMusic(Level->cdtrack, Level->cdid))
S_ChangeMusic(Level->Music, Level->musicorder);
Level->SetMusic();
Level->SetMusicVolume(musvol);
}
}