(9801d8289) Added: Handling of error cases when video is not found

This commit is contained in:
Joonas Rikkonen
2019-03-27 20:45:58 +02:00
parent 556d86ed4f
commit 7ea3e1b20c
8 changed files with 120 additions and 15 deletions
@@ -192,6 +192,9 @@ namespace Barotrauma
Hull hull = Hull.FindHull(ConvertUnits.ToDisplayUnits(explosionPos), null, false);
bool underWater = hull == null || explosionPos.Y < hull.Surface;
Hull hull = Hull.FindHull(ConvertUnits.ToDisplayUnits(explosionPos), null, false);
bool underWater = hull == null || explosionPos.Y < hull.Surface;
explosionPos = ConvertUnits.ToSimUnits(explosionPos);
Dictionary<Limb, float> distFactors = new Dictionary<Limb, float>();