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

improved dialog response checking #902

Merged
merged 3 commits into from
Jun 28, 2024

Conversation

atomlin-git
Copy link
Contributor

Maded:

  • now, when processing a response to a dialogs next types: "DIALOG_STYLE_LIST", "DIALOG_STYLE_TABLIST_HEADERS", "DIALOG_STYLE_TABLIST" the number of lines in the body of the dialogue is counted, and if the "listitem" value that the player sent is more than we counted - such a response is ignored.

  • limited the response parametr value from 0 to 1

Feat #866 and #867

P.S: Implemented through a loop, not a "Impl::count", since in this case the loop should be faster

Server/Components/Dialogs/dialog.cpp Outdated Show resolved Hide resolved
Server/Components/Dialogs/dialog.cpp Outdated Show resolved Hide resolved
Server/Components/Dialogs/dialog.cpp Outdated Show resolved Hide resolved
@atomlin-git atomlin-git requested a review from Hual March 29, 2024 12:57
@AmyrAhmady AmyrAhmady merged commit 6c58ec6 into openmultiplayer:master Jun 28, 2024
13 of 14 checks passed
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.

4 participants