Skip to content

improved dialog response checking - #902

Merged
AmyrAhmady merged 3 commits into
openmultiplayer:masterfrom
atomlin-git:dialogvalidations
Jun 28, 2024
Merged

AmyrAhmady merged 3 commits into
openmultiplayer:masterfrom
atomlin-git:dialogvalidations

Conversation

@atomlin-git

Copy link
Copy Markdown
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

Comment thread Server/Components/Dialogs/dialog.cpp Resolved
Comment thread Server/Components/Dialogs/dialog.cpp Resolved
Comment thread Server/Components/Dialogs/dialog.cpp 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
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