Some null checks, clients log initial lobby update, minor lighting optimization

This commit is contained in:
Joonas Rikkonen
2017-07-04 22:32:14 +03:00
parent 59997b94ab
commit e431cc775f
4 changed files with 8 additions and 11 deletions
@@ -413,7 +413,7 @@ namespace Barotrauma.Lights
if (intersection != null)
{
float dist = Vector2.Distance((Vector2)intersection, rayStart);
float dist = Vector2.DistanceSquared((Vector2)intersection, rayStart);
if (closestIntersection == null || dist < closestDist)
{
closestDist = dist;