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

[#21 Bug] Fix : Credits stops working after a client is dropping early. #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Natanel-Shitrit
Copy link

This is a bug fix for #21.

Explanation:
When a client is connecting, he can disconnect (drop from the server) before reaching the OnClientPostAdminCheck() forward, which results an unwanted behavior, he doesn't add up into the count variable (g_iClientCount) but makes the counter subtract 1 from it when he reaches the OnClientDisconnect() forward.

This can cause the the counter to be wrong.
This result a wrong outcome in the minimum players checks.
and because of that, credits are not being added. (for example in here)

Thanks for @penalte for testing and confirming #21 bug is resolved.

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.

1 participant