Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/add/crit-sound' into add/crit-sound
Browse files Browse the repository at this point in the history
# Conflicts:
#	Content.Server/_Sunrise/CritHeartbeat/CritHeartbeatSystem.cs
  • Loading branch information
ThereDrD0 committed Jan 15, 2025
2 parents 80e9166 + 7bd58a4 commit f0658e1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private void OnDamage(Entity<CritHeartbeatComponent> ent, ref DamageChangedEvent
if (!ent.Comp.Enabled)
return;

if (!Exists(ent.Comp.AudioStream))
if (ent.Comp.AudioStream == null || !Exists(ent.Comp.AudioStream))
return;

var pitch = Math.Min(1, 100 / args.Damageable.TotalDamage.Float());
Expand Down

0 comments on commit f0658e1

Please sign in to comment.