mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-27 22:33:17 +00:00
- 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:
parent
fb3d4bd42a
commit
92b916fd5d
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue