-
Notifications
You must be signed in to change notification settings - Fork 234
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
Fix recall again #6396
base: develop
Are you sure you want to change the base?
Fix recall again #6396
Conversation
brain.LastRecallVoteTime = gametick | ||
end | ||
brain.RecallVote = nil -- make sure defeated players get reset too |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is the critical line that fixes recall frequently failing? Previously the RecallVote
wasn't cleared when a brain was defeated, so their vote from previous recalls remained locked in for the rest of the game?
The rest is refactoring for better logging and improving the UI behavior to work with 3 player votes when the third is defeated and it transforms into 2 players?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you take the conditions of the if statement into account, I guess, yeah.
teammates was not teamsize
Test iteration 2:
Other notes:
|
Fixes two issues: - defeated brains UI would show as if they could vote - previous voters UI would show as if they could vote - previous abstainers UI would show as if they could not vote
hides the "request recall" button in the UI after defeat
This reverts commit 33e5e86.
I think all the issues I've highlighted are fixed. Opening 8 instances and voting in different ways along with 1 player dying during the middle of the vote all works as expected sim and UI wise. |
This reverts commit ecf9ace.
Adds better recall reporting in the log and handles defeated brains better.
Partially tested for now.