From f37179a8e1fc7149e3c581a08fddfcab59eb7b58 Mon Sep 17 00:00:00 2001 From: elexis Date: Thu, 1 Dec 2016 02:17:28 +0000 Subject: [PATCH] Fix errors when using the developer overlay to change the perspective while in building placement preview. Patch by Vladislav. git-svn-id: http://svn.wildfiregames.com/public/ps/trunk@19015 3db68df2-c116-0410-a063-a993310a9797 --- binaries/data/mods/public/gui/session/session.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/binaries/data/mods/public/gui/session/session.js b/binaries/data/mods/public/gui/session/session.js index eee702bfb8..ada8705866 100644 --- a/binaries/data/mods/public/gui/session/session.js +++ b/binaries/data/mods/public/gui/session/session.js @@ -401,7 +401,11 @@ function selectViewPlayer(playerID) g_IsObserver = isPlayerObserver(Engine.GetPlayerID()); if (g_IsObserver || g_DevSettings.changePerspective) + { + if (g_ViewedPlayer != playerID) + clearSelection(); g_ViewedPlayer = playerID; + } if (g_DevSettings.changePerspective) { @@ -410,7 +414,6 @@ function selectViewPlayer(playerID) } Engine.SetViewedPlayer(g_ViewedPlayer); - updateTopPanel(); updateChatAddressees(); updateHotkeyTooltips(); -- 2.11.4.GIT