mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
Allow playing oggs using 'play soundname'
This commit is contained in:
parent
f908623606
commit
fa8a6f88f2
1 changed files with 1 additions and 7 deletions
|
@ -1148,12 +1148,6 @@ void S_Play (void)
|
|||
i = 1;
|
||||
while (i < Cmd_Argc())
|
||||
{
|
||||
if (!Q_strrchr(Cmd_Argv(i), '.'))
|
||||
{
|
||||
Q_strcpy(name, Cmd_Argv(i));
|
||||
Q_strcat(name, ".wav");
|
||||
}
|
||||
else
|
||||
Q_strcpy(name, Cmd_Argv(i));
|
||||
sfx = S_PrecacheSound(name);
|
||||
S_StartSound(hash++, 0, sfx, listener_origin, 1.0, 1.0);
|
||||
|
|
Loading…
Reference in a new issue