From 696125138c91ed83bc2626172eb55ee49e59630d Mon Sep 17 00:00:00 2001 From: Andrew Fenn Date: Thu, 14 Jul 2016 00:39:03 +0700 Subject: [PATCH] Fix projectors not working in offline mode I'm not 100% sure this is the correct fix, however the current functionality ignores players in offline mode as admins as m_adminMode does not contain the user. MySession.Static.IsCopyPastingEnabled thus returns false. Due to the fact that projectors specifically check for if IsCopyPastingEnabled the false flag stops any blueprints in offline mode from working. --- Sources/Sandbox.Game/Game/World/MySession.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/Sandbox.Game/Game/World/MySession.cs b/Sources/Sandbox.Game/Game/World/MySession.cs index 2752c3ea57..eda357f233 100644 --- a/Sources/Sandbox.Game/Game/World/MySession.cs +++ b/Sources/Sandbox.Game/Game/World/MySession.cs @@ -402,7 +402,7 @@ public bool IsUserPromoted( ulong steamId ) HashSet m_adminMode = new HashSet(); public bool IsAdminModeEnabled(ulong user) { - return m_adminMode.Contains(user) && HasPlayerAdminRights(user); + return m_adminMode.Contains(user) || HasPlayerAdminRights(user); } public void EnableAdminMode(ulong user,bool value) @@ -2381,4 +2381,4 @@ private static Vector3D GetLocalPlayerPosition() return default(Vector3D); } } -} \ No newline at end of file +}