- split off all music code from s_sound.cpp

This commit is contained in:
Christoph Oelckers 2019-08-23 17:15:19 +02:00
commit 66db894866
25 changed files with 1075 additions and 808 deletions

View file

@ -89,6 +89,7 @@
#include "actorinlines.h"
#include "i_time.h"
#include "p_maputl.h"
#include "s_music.h"
void STAT_StartNewGame(const char *lev);
void STAT_ChangeLevel(const char *newl, FLevelLocals *Level);
@ -2221,3 +2222,10 @@ int IsPointInMap(FLevelLocals *Level, double x, double y, double z)
return true;
}
void FLevelLocals::SetMusic()
{
if (cdtrack == 0 || !S_ChangeCDMusic(cdtrack, cdid))
S_ChangeMusic(Music, musicorder);
}