mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-23 13:02:07 +00:00
Merge remote-tracking branch 'upstream/master' into fix/558_silenced_muzzle_flash
This commit is contained in:
commit
1887072cc9
2 changed files with 19 additions and 5 deletions
|
@ -30,7 +30,7 @@
|
||||||
|
|
||||||
#include "../../common/header/common.h"
|
#include "../../common/header/common.h"
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__FreeBSD__) || defined(__APPLE__)
|
#if defined(__GLIBC__) || defined(__FreeBSD__) || defined(__APPLE__)
|
||||||
#include <execinfo.h>
|
#include <execinfo.h>
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -862,12 +862,26 @@ S_StartSound(vec3_t origin, int entnum, int entchannel, sfx_t *sfx,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* sort into the pending sound list */
|
cvar_t *game = Cvar_Get("game", "", CVAR_LATCH | CVAR_SERVERINFO);
|
||||||
|
|
||||||
|
if ((strcmp(game->string, "") == 0) ||
|
||||||
|
(strcmp(game->string, "rogue") == 0) ||
|
||||||
|
(strcmp(game->string, "xatrix") == 0))
|
||||||
|
{
|
||||||
for (sort = s_pendingplays.next;
|
for (sort = s_pendingplays.next;
|
||||||
sort != &s_pendingplays && sort->begin <= ps->begin;
|
sort != &s_pendingplays && sort->begin <= ps->begin;
|
||||||
sort = sort->next)
|
sort = sort->next)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
for (sort = s_pendingplays.next;
|
||||||
|
sort != &s_pendingplays && sort->begin < ps->begin;
|
||||||
|
sort = sort->next)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ps->next = sort;
|
ps->next = sort;
|
||||||
ps->prev = sort->prev;
|
ps->prev = sort->prev;
|
||||||
|
|
Loading…
Reference in a new issue