1
0
Fork 0
forked from fte/fteqw

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:
Eukara 2018-08-02 20:00:26 +00:00
parent d5cbafbed8
commit 14c48b5385

View file

@ -498,6 +498,11 @@ void Media_NamedTrack_f(void)
else else
Media_NamedTrack(Cmd_Argv(1), Cmd_Argv(1)); 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) void Media_NumberedTrack(unsigned int initialtrack, unsigned int looptrack)
{ {
@ -5179,4 +5184,5 @@ void Media_Init(void)
#endif #endif
Cmd_AddCommand("music", Media_NamedTrack_f); Cmd_AddCommand("music", Media_NamedTrack_f);
Cmd_AddCommand("stopmusic", Media_StopTrack_f);
} }