mirror of
https://github.com/yquake2/xatrix.git
synced 2025-02-23 20:31:40 +00:00
Fix items already in water at level start playing splash sound
This commit is contained in:
parent
8fb33ee9fd
commit
1d04967d88
1 changed files with 6 additions and 2 deletions
|
@ -1014,10 +1014,14 @@ SV_Physics_Toss(edict_t *ent)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!wasinwater && isinwater)
|
if (!wasinwater && isinwater)
|
||||||
|
{
|
||||||
|
/* don't play splash sound for entities already in water on level start */
|
||||||
|
if (level.framenum > 3)
|
||||||
{
|
{
|
||||||
gi.positioned_sound(old_origin, g_edicts, CHAN_AUTO,
|
gi.positioned_sound(old_origin, g_edicts, CHAN_AUTO,
|
||||||
gi.soundindex("misc/h2ohit1.wav"), 1, 1, 0);
|
gi.soundindex("misc/h2ohit1.wav"), 1, 1, 0);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else if (wasinwater && !isinwater)
|
else if (wasinwater && !isinwater)
|
||||||
{
|
{
|
||||||
gi.positioned_sound(ent->s.origin, g_edicts, CHAN_AUTO,
|
gi.positioned_sound(ent->s.origin, g_edicts, CHAN_AUTO,
|
||||||
|
|
Loading…
Reference in a new issue