- split off all music code from s_sound.cpp
This commit is contained in:
parent
1595bf30c6
commit
66db894866
25 changed files with 1075 additions and 808 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue