Added stopmusic
because fans of 'stopsound' might appreciate it
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5280 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d5cbafbed8
commit
14c48b5385
1 changed files with 6 additions and 0 deletions
|
@ -498,6 +498,11 @@ void Media_NamedTrack_f(void)
|
|||
else
|
||||
Media_NamedTrack(Cmd_Argv(1), Cmd_Argv(1));
|
||||
}
|
||||
void Media_StopTrack_f(void)
|
||||
{
|
||||
*media_playtrack = *media_loopingtrack = 0;
|
||||
Media_Changed(MEDIA_GAMEMUSIC);
|
||||
}
|
||||
|
||||
void Media_NumberedTrack(unsigned int initialtrack, unsigned int looptrack)
|
||||
{
|
||||
|
@ -5179,4 +5184,5 @@ void Media_Init(void)
|
|||
#endif
|
||||
|
||||
Cmd_AddCommand("music", Media_NamedTrack_f);
|
||||
Cmd_AddCommand("stopmusic", Media_StopTrack_f);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue