Fix xenos prying doors from afar (#10778)

This commit is contained in:
TekuNut
2022-08-23 11:31:54 +01:00
committed by GitHub
parent 9a0eef932c
commit b80708e7cc
3 changed files with 31 additions and 20 deletions

View File

@@ -27,9 +27,9 @@ public sealed class DoorSystem : SharedDoorSystem
}
// TODO AUDIO PREDICT see comments in server-side PlaySound()
protected override void PlaySound(EntityUid uid, string sound, AudioParams audioParams, EntityUid? predictingPlayer, bool predicted)
protected override void PlaySound(EntityUid uid, SoundSpecifier soundSpecifier, AudioParams audioParams, EntityUid? predictingPlayer, bool predicted)
{
if (GameTiming.InPrediction && GameTiming.IsFirstTimePredicted)
SoundSystem.Play(sound, Filter.Local(), uid, audioParams);
Audio.Play(soundSpecifier, Filter.Local(), uid, audioParams);
}
}