- 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...
This commit is contained in:
Christoph Oelckers 2017-02-26 18:49:40 +01:00
parent fb3d4bd42a
commit 92b916fd5d
1 changed files with 4 additions and 1 deletions

View File

@ -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;