v0.3.3.1: fixed the inventories of selected players going behind the chatbox, fixed clients sending deselect messages for characters other than their own, using keybinds when moving the camera

This commit is contained in:
Regalis
2016-02-21 00:29:53 +02:00
parent 308ae7a8b0
commit d6443ac6a4
6 changed files with 16 additions and 37 deletions
+4 -4
View File
@@ -671,9 +671,9 @@ namespace Barotrauma
if (selectedCharacter!=null)
{
if (Vector2.Distance(selectedCharacter.SimPosition, SimPosition) > 2.0f || !selectedCharacter.CanBeSelected)
if (Vector2.Distance(selectedCharacter.SimPosition, SimPosition) > 3.0f || !selectedCharacter.CanBeSelected)
{
DeselectCharacter();
DeselectCharacter(controlled == this);
}
}
@@ -905,7 +905,7 @@ namespace Barotrauma
{
if (selectedCharacter != null)
{
DeselectCharacter();
DeselectCharacter(controlled == this);
}
else if (closestCharacter != null && closestCharacter.IsHumanoid && closestCharacter.CanBeSelected)
{
@@ -915,7 +915,7 @@ namespace Barotrauma
}
else
{
if (selectedCharacter != null) DeselectCharacter();
if (selectedCharacter != null) DeselectCharacter(controlled==this);
selectedConstruction = null;
closestItem = null;
closestCharacter = null;