Don't focus on spies for non-following observers

Missing since introduction in e14ad3c771.
This commit is contained in:
elexis 2025-01-04 12:51:18 +01:00 committed by phosit
parent 015aa0349b
commit 88df5ec95f

View file

@ -190,7 +190,7 @@ var g_NotificationsTypes =
{
g_DiplomacyDialog.onSpyResponse(notification, player);
if (notification.entity && g_ViewedPlayer == player)
if (notification.entity && g_ViewedPlayer == player && (!g_IsObserver || g_FollowPlayer))
{
g_DiplomacyDialog.close();
setCameraFollow(notification.entity);