Fixed teleport command not working on other characters than the controlled one

This commit is contained in:
Joonas Rikkonen
2017-07-18 19:41:18 +03:00
parent 6c80a02354
commit d694c7efdc

View File

@@ -385,7 +385,7 @@ namespace Barotrauma
}
else
{
FindMatchingCharacter(args, false);
tpCharacter = FindMatchingCharacter(args, false);
}
if (tpCharacter == null) return;
@@ -792,7 +792,7 @@ namespace Barotrauma
if (!matchingCharacters.Any())
{
NewMessage("Matching characters not found", Color.Red);
NewMessage("Character \""+ characterName + "\" not found", Color.Red);
return null;
}