(18165dcb9) Propagate hull safety once per second.

This commit is contained in:
Joonas Rikkonen
2019-05-16 06:50:23 +03:00
parent 4c0adb145d
commit 437465690b
12 changed files with 85 additions and 2150 deletions
@@ -4,7 +4,6 @@ using System;
using System.Collections.Generic;
using System.Linq;
using Barotrauma.Extensions;
using Barotrauma.Items.Components;
namespace Barotrauma
{
@@ -126,6 +125,10 @@ namespace Barotrauma
}
else
{
if (Character.CurrentHull != null)
{
VisibleHulls.ForEach(h => PropagateHullSafety(Character.Controlled, h));
}
if (Character.SpeechImpediment < 100.0f)
{
ReportProblems();