mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-23 04:12:39 +00:00
- Fix two non-C-standard variable declarations.
- Fix function name of vsnprintf for windows systems.
This commit is contained in:
parent
8ca8d84591
commit
c1875302c2
2 changed files with 7 additions and 3 deletions
|
@ -913,11 +913,14 @@ Play a local (non-spatialized) sound effect
|
|||
static
|
||||
void S_AL_StartLocalSound(sfxHandle_t sfx, int channel)
|
||||
{
|
||||
srcHandle_t src;
|
||||
|
||||
if(S_AL_CheckInput(0, sfx))
|
||||
return;
|
||||
|
||||
// Try to grab a source
|
||||
srcHandle_t src = S_AL_SrcAlloc(SRCPRI_LOCAL, -1, channel);
|
||||
src = S_AL_SrcAlloc(SRCPRI_LOCAL, -1, channel);
|
||||
|
||||
if(src == -1)
|
||||
return;
|
||||
|
||||
|
@ -939,12 +942,13 @@ static
|
|||
void S_AL_StartSound( vec3_t origin, int entnum, int entchannel, sfxHandle_t sfx )
|
||||
{
|
||||
vec3_t sorigin;
|
||||
srcHandle_t src;
|
||||
|
||||
if(S_AL_CheckInput(origin ? 0 : entnum, sfx))
|
||||
return;
|
||||
|
||||
// Try to grab a source
|
||||
srcHandle_t src = S_AL_SrcAlloc(SRCPRI_ONESHOT, entnum, entchannel);
|
||||
src = S_AL_SrcAlloc(SRCPRI_ONESHOT, entnum, entchannel);
|
||||
if(src == -1)
|
||||
return;
|
||||
|
||||
|
|
|
@ -719,7 +719,7 @@ void QDECL NET_OutOfBandPrint( netsrc_t sock, netadr_t adr, const char *format,
|
|||
string[3] = -1;
|
||||
|
||||
va_start( argptr, format );
|
||||
vsnprintf( string+4, sizeof(string)-4, format, argptr );
|
||||
Q_vsnprintf( string+4, sizeof(string)-4, format, argptr );
|
||||
va_end( argptr );
|
||||
|
||||
// send the datagram
|
||||
|
|
Loading…
Reference in a new issue