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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

atomlin-git
Copy link

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
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.

None yet

3 participants