Skip to content

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

Open
Natanel-Shitrit wants to merge 1 commit intoshanapu:masterfrom
Natanel-Shitrit:credits_fix
Open

[#21 Bug] Fix : Credits stops working after a client is dropping early.#28
Natanel-Shitrit wants to merge 1 commit intoshanapu:masterfrom
Natanel-Shitrit:credits_fix

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