From d694c7efdcc2d2eee418d7d0e04530100747dc03 Mon Sep 17 00:00:00 2001 From: Joonas Rikkonen Date: Tue, 18 Jul 2017 19:41:18 +0300 Subject: [PATCH] Fixed teleport command not working on other characters than the controlled one --- Barotrauma/BarotraumaShared/Source/DebugConsole.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs index 64286f481..eb38274fe 100644 --- a/Barotrauma/BarotraumaShared/Source/DebugConsole.cs +++ b/Barotrauma/BarotraumaShared/Source/DebugConsole.cs @@ -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; }