Skip to content

Commit

Permalink
GameContext: Fix global sound demo recording
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Sep 7, 2023
1 parent ac97ec4 commit 126f603
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/game/server/gamecontext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,10 +328,12 @@ void CGameContext::CreateSoundGlobal(int Sound, int Target)
Server()->SendPackMsg(&Msg, MSGFLAG_NOSEND, -1);
else
{
int Flag = MSGFLAG_VITAL;
if(Target != -1)
Flag |= MSGFLAG_NORECORD;
Server()->SendPackMsg(&Msg, Flag, Target);
if(Target == -1)
{
Server()->SendPackMsg(&Msg, MSGFLAG_VITAL | MSGFLAG_NOSEND, SERVER_DEMO_CLIENT);
}

Server()->SendPackMsg(&Msg, MSGFLAG_VITAL | MSGFLAG_NORECORD, Target);
}
}

Expand Down

0 comments on commit 126f603

Please sign in to comment.