Skip to content

Fix: RTV - Vote is not accepted if rtv.bPlaySounds is 0#15

Open
Travmatolog wants to merge 1 commit intoMrOats:masterfrom
Travmatolog:master
Open

Fix: RTV - Vote is not accepted if rtv.bPlaySounds is 0#15
Travmatolog wants to merge 1 commit intoMrOats:masterfrom
Travmatolog:master

Conversation

@Travmatolog
Copy link
Copy Markdown

In case rtv.bPlaySounds is 0 PostVote() will not be called at the end of the vote.

else if (secondsleftforvote == 0 && g_PlaySounds.GetBool())
  {

    PostVote();
    g_Scheduler.RemoveTimer(g_TimeUntilVote);
    @g_TimeUntilVote = null;
    secondsleftforvote = g_VotingPeriodTime.GetInt();

  }

Copy link
Copy Markdown

@stickyisle stickyisle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This fix works for my servers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants