-
Notifications
You must be signed in to change notification settings - Fork 57
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
Stop iniswapping from modifying the char.ini file #712
Conversation
…emove comments such as credits, charmaker notes, etc.)
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.
clang-tidy made some suggestions
…me is reloaded Prevent reload theme from resetting your emote to the first one
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.
I'm glad we are removing one of the most nerve wracking parts of courtroom.cpp. The function that returns a name given a name
@@ -1450,7 +1450,7 @@ void Courtroom::set_pos_dropdown(QStringList pos_dropdowns) | |||
set_side(current_side); | |||
} | |||
|
|||
void Courtroom::update_character(int p_cid) | |||
void Courtroom::update_character(int p_cid, QString char_name, bool reset_emote) |
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.
Why does cid matter if we know that char_name is going to override it? I think this CID thing is really a vestigial part of the protocol at this point and we should seclude it to some packet handler.
Likewise, instead of adding reset_emote we can extract a method for that.
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.
it did WHAT before
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.
clang-tidy made some suggestions
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
what happened with |
…Online/AO2-Client into fix-iniswap-file-io
…ne/AO2-Client into fix-iniswap-file-io
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.
Good riddance
Stop iniswapping from modifying the char.ini (which can potentially remove comments such as credits, charmaker notes, etc.)
It also lead to really annoying behavior where if you swapped out from that character, when you swap back you'd be put into the iniswap instead of the default state, which could even be outside that character's iniswap list.
Closes #737