Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate vote #20

Merged
merged 1 commit into from
Aug 15, 2022
Merged

Validate vote #20

merged 1 commit into from
Aug 15, 2022

Conversation

iBoonie
Copy link

@iBoonie iBoonie commented Aug 15, 2022

If we don't validate the vote, it still calls OnClientEnd(); which decrements the global vote counter, when the counter reaches 0 it auto swaps the map. By spamming an invalid vote command * number of connected clients, we can prematurely kill a vote and swap maps.

If we don't validate the vote, it still calls OnClientEnd(); which decrements the global vote counter, when the counter reaches 0 it auto swaps the map. By spamming invalid vote commands x number of connected clients, we can prematurely kill a vote and swap maps.
@sapphonie
Copy link
Owner

Lgtm, thx

@sapphonie sapphonie merged commit d42f2f4 into sapphonie:master Aug 15, 2022
@iBoonie iBoonie deleted the votefix branch August 15, 2022 23:11
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