Stun syncing bugfix, fixed dead/unconscious characters being unselectable in the info menu, pockets for doctors, fixed tutorial (map generation algorithm changes had made the level unplayable)

This commit is contained in:
Regalis
2016-04-25 19:16:01 +03:00
parent 45e3bed07c
commit 2136641609
10 changed files with 30 additions and 13 deletions
+1 -3
View File
@@ -206,8 +206,6 @@ namespace Barotrauma
public void CreateCrewFrame(List<Character> crew, GUIFrame crewFrame)
{
int width = 600, height = 400;
//crewFrame = new GUIFrame(new Rectangle(GameMain.GraphicsWidth / 2 - width / 2, GameMain.GraphicsHeight / 2 - height / 2, width, height), GUI.Style);
//crewFrame.Padding = new Vector4(10.0f, 10.0f, 10.0f, 10.0f);
@@ -242,7 +240,7 @@ namespace Barotrauma
protected virtual bool SelectCrewCharacter(GUIComponent component, object obj)
{
Character character = obj as Character;
if (character == null || character.IsDead || character.IsUnconscious) return false;
if (character == null) return false;
var crewFrame = component.Parent;
while (crewFrame.Parent!=null)