Skip to content

Commit

Permalink
Fixed ACS AnnouncerSound function local parameter playing all sounds …
Browse files Browse the repository at this point in the history
…in offline skirmish
  • Loading branch information
Evghenii committed Sep 20, 2024
1 parent 48f071f commit 8648236
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/p_acs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7372,6 +7372,7 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
{
if ( NETWORK_GetState( ) == NETSTATE_SERVER )
SERVERCOMMANDS_AnnouncerSound(FBehavior::StaticLookupString(args[0]));
ANNOUNCER_PlayEntry(cl_announcer, FBehavior::StaticLookupString(args[0]));
}
else
{
Expand All @@ -7380,8 +7381,9 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
break;
if ( NETWORK_GetState( ) == NETSTATE_SERVER )
SERVERCOMMANDS_AnnouncerSound(FBehavior::StaticLookupString(args[0]), activator->player - players, SVCF_ONLYTHISCLIENT);
else if (activator->player - players == consoleplayer)
ANNOUNCER_PlayEntry(cl_announcer, FBehavior::StaticLookupString(args[0]));
}
ANNOUNCER_PlayEntry(cl_announcer, FBehavior::StaticLookupString(args[0]));
return 0;

// [BB]
Expand Down

0 comments on commit 8648236

Please sign in to comment.