- 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

View file

@ -9423,7 +9423,10 @@ scriptwait:
} }
case PCD_SETMUGSHOTSTATE: case PCD_SETMUGSHOTSTATE:
StatusBar->SetMugShotState(FBehavior::StaticLookupString(STACK(1))); if (!multiplayer || (activator != nullptr && activator->CheckLocalView(consoleplayer)))
{
StatusBar->SetMugShotState(FBehavior::StaticLookupString(STACK(1)));
}
sp--; sp--;
break; break;