From 92b916fd5de907103f906117d915796ad92ef76f Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 26 Feb 2017 18:49:40 +0100 Subject: [PATCH] - fixed: ACS's SetMugshotState function was essentially broken in multiplayer because it contained no checks if the script's activator is connected to the current console player. Ideally this should also be fixed for singleplayer but that would probably break half the mods using this function... --- src/p_acs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/p_acs.cpp b/src/p_acs.cpp index 463868d88..ad66627f5 100644 --- a/src/p_acs.cpp +++ b/src/p_acs.cpp @@ -9423,7 +9423,10 @@ scriptwait: } case PCD_SETMUGSHOTSTATE: - StatusBar->SetMugShotState(FBehavior::StaticLookupString(STACK(1))); + if (!multiplayer || (activator != nullptr && activator->CheckLocalView(consoleplayer))) + { + StatusBar->SetMugShotState(FBehavior::StaticLookupString(STACK(1))); + } sp--; break;