play/playvol made non-positional

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@306 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
TimeServ 2004-10-06 23:44:39 +00:00
parent 5aebd86482
commit d1f57ab175
1 changed files with 4 additions and 4 deletions

View File

@ -1371,7 +1371,7 @@ console functions
void S_Play(void)
{
static int hash=345;
// static int hash=345;
int i;
char name[256];
sfx_t *sfx;
@ -1387,14 +1387,14 @@ void S_Play(void)
else
Q_strcpy(name, Cmd_Argv(i));
sfx = S_PrecacheSound(name);
S_StartSound(hash++, 0, sfx, listener_origin, 1.0, 1.0);
S_StartSound(-1, -1, sfx, vec3_origin, 1.0, 1.0);
i++;
}
}
void S_PlayVol(void)
{
static int hash=543;
// static int hash=543;
int i;
float vol;
char name[256];
@ -1412,7 +1412,7 @@ void S_PlayVol(void)
Q_strcpy(name, Cmd_Argv(i));
sfx = S_PrecacheSound(name);
vol = Q_atof(Cmd_Argv(i+1));
S_StartSound(hash++, 0, sfx, listener_origin, vol, 1.0);
S_StartSound(-1, -1, sfx, vec3_origin, vol, 1.0);
i+=2;
}
}