mirror of
https://github.com/yquake2/rogue.git
synced 2024-11-26 14:10:55 +00:00
Fix items already in water at level start playing splash sound
This commit is contained in:
parent
2246a943bf
commit
678eee9bc7
1 changed files with 5 additions and 1 deletions
|
@ -989,9 +989,13 @@ SV_Physics_Toss(edict_t *ent)
|
|||
}
|
||||
|
||||
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.soundindex("misc/h2ohit1.wav"), 1, 1, 0);
|
||||
}
|
||||
}
|
||||
else if (wasinwater && !isinwater)
|
||||
{
|
||||
gi.positioned_sound(ent->s.origin, g_edicts, CHAN_AUTO, gi.soundindex("misc/h2ohit1.wav"), 1, 1, 0);
|
||||
|
|
Loading…
Reference in a new issue