- added a 'restart' CCMD that allows restarting the engine with different WADs being loaded without quitting first
SVN r3042 (trunk)
This commit is contained in:
parent
772d59dff4
commit
b42952b85c
17 changed files with 418 additions and 233 deletions
|
|
@ -502,6 +502,24 @@ static void AssignHexenTranslations (void)
|
|||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// S_ClearSndSeq
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void S_ClearSndSeq()
|
||||
{
|
||||
for (unsigned int i = 0; i < Sequences.Size(); i++)
|
||||
{
|
||||
if (Sequences[i])
|
||||
{
|
||||
M_Free(Sequences[i]);
|
||||
}
|
||||
}
|
||||
Sequences.Clear();
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// S_ParseSndSeq
|
||||
|
|
@ -523,14 +541,7 @@ void S_ParseSndSeq (int levellump)
|
|||
|
||||
// First free the old SNDSEQ data. This allows us to reload this for each level
|
||||
// and specify a level specific SNDSEQ lump!
|
||||
for (unsigned int i = 0; i < Sequences.Size(); i++)
|
||||
{
|
||||
if (Sequences[i])
|
||||
{
|
||||
M_Free(Sequences[i]);
|
||||
}
|
||||
}
|
||||
Sequences.Clear();
|
||||
S_ClearSndSeq();
|
||||
|
||||
// be gone, compiler warnings
|
||||
stopsound = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue