(30c3f2268) Fixed server crashing when attempting to send voip from living players to spectators
This commit is contained in:
@@ -126,6 +126,10 @@ namespace Barotrauma.Networking
|
||||
|
||||
public static float GetGarbleAmount(Entity listener, Entity sender, float range, float obstructionmult = 2.0f)
|
||||
{
|
||||
if (listener == null || sender == null)
|
||||
{
|
||||
return 0.0f;
|
||||
}
|
||||
if (listener.WorldPosition == sender.WorldPosition) { return 0.0f; }
|
||||
|
||||
float dist = Vector2.Distance(listener.WorldPosition, sender.WorldPosition);
|
||||
|
||||
Reference in New Issue
Block a user