mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-02-21 11:10:51 +00:00
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:
parent
5aebd86482
commit
d1f57ab175
1 changed files with 4 additions and 4 deletions
|
@ -1371,7 +1371,7 @@ console functions
|
||||||
|
|
||||||
void S_Play(void)
|
void S_Play(void)
|
||||||
{
|
{
|
||||||
static int hash=345;
|
// static int hash=345;
|
||||||
int i;
|
int i;
|
||||||
char name[256];
|
char name[256];
|
||||||
sfx_t *sfx;
|
sfx_t *sfx;
|
||||||
|
@ -1387,14 +1387,14 @@ void S_Play(void)
|
||||||
else
|
else
|
||||||
Q_strcpy(name, Cmd_Argv(i));
|
Q_strcpy(name, Cmd_Argv(i));
|
||||||
sfx = S_PrecacheSound(name);
|
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++;
|
i++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void S_PlayVol(void)
|
void S_PlayVol(void)
|
||||||
{
|
{
|
||||||
static int hash=543;
|
// static int hash=543;
|
||||||
int i;
|
int i;
|
||||||
float vol;
|
float vol;
|
||||||
char name[256];
|
char name[256];
|
||||||
|
@ -1412,7 +1412,7 @@ void S_PlayVol(void)
|
||||||
Q_strcpy(name, Cmd_Argv(i));
|
Q_strcpy(name, Cmd_Argv(i));
|
||||||
sfx = S_PrecacheSound(name);
|
sfx = S_PrecacheSound(name);
|
||||||
vol = Q_atof(Cmd_Argv(i+1));
|
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;
|
i+=2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue