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
@@ -213,7 +213,7 @@ namespace Barotrauma
return;
}
if (attachToWalls && Character.Submarine == null)
if (attachToWalls && Character.Submarine == null && Level.Loaded != null)
{
raycastTimer -= deltaTime;
//check if there are any walls nearby the character could attach to