From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Mon, 13 Nov 2023 08:48:47 +0000 (+0000) Subject: fix egg debug assert (#21628) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=e02bffc28ebb45ff88c10ea7dd0e623fee347d1c;p=space-station-14.git fix egg debug assert (#21628) Co-authored-by: deltanedas <@deltanedas:kde.org> --- diff --git a/Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs b/Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs index f099a33759..4371ac83a8 100644 --- a/Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs +++ b/Content.Shared/Damage/Systems/DamageOnHighSpeedImpactSystem.cs @@ -49,7 +49,8 @@ public sealed class DamageOnHighSpeedImpactSystem : EntitySystem _damageable.TryChangeDamage(uid, component.Damage * damageScale); - _audio.PlayPvs(component.SoundHit, uid, AudioParams.Default.WithVariation(0.125f).WithVolume(-0.125f)); + if (_gameTiming.IsFirstTimePredicted) + _audio.PlayPvs(component.SoundHit, uid, AudioParams.Default.WithVariation(0.125f).WithVolume(-0.125f)); _color.RaiseEffect(Color.Red, new List() { uid }, Filter.Pvs(uid, entityManager: EntityManager)); }