Camera twitching fixes (again), using character name for ingame chatmessages instead of NetworkMember name, disabled CrewCommander in multiplayer, hide healthbar when dead

This commit is contained in:
Regalis
2016-01-09 19:16:38 +02:00
parent addd9dea5c
commit 81547c2c9c
8 changed files with 17 additions and 12 deletions
+2 -1
View File
@@ -120,7 +120,8 @@ namespace Barotrauma
if (PlayerInput.KeyHit(Microsoft.Xna.Framework.Input.Keys.C))
{
commander.ToggleGUIFrame();
//only allow opening the command UI if there are AICharacters in the crew
if (commander.IsOpen || characters.Any(c => c is AICharacter)) commander.ToggleGUIFrame();
}
if (commander.Frame != null) commander.Frame.Update(deltaTime);