mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-26 16:50:15 +00:00
Fix character creation for expansion-filtered servers (Turtle WoW)
Filter races/classes in character creation screen by expansion profile constraints, add 10s server response timeout, and reset Warden crypto state on disconnect so reconnections use the correct session key.
This commit is contained in:
parent
886f4daf2e
commit
5b08e47941
4 changed files with 144 additions and 38 deletions
|
|
@ -1721,6 +1721,12 @@ void Application::setupUICallbacks() {
|
|||
// "Create Character" button on character screen
|
||||
uiManager->getCharacterScreen().setOnCreateCharacter([this]() {
|
||||
uiManager->getCharacterCreateScreen().reset();
|
||||
// Apply expansion race/class constraints before showing the screen
|
||||
if (expansionRegistry_ && expansionRegistry_->getActive()) {
|
||||
auto* profile = expansionRegistry_->getActive();
|
||||
uiManager->getCharacterCreateScreen().setExpansionConstraints(
|
||||
profile->races, profile->classes);
|
||||
}
|
||||
uiManager->getCharacterCreateScreen().initializePreview(assetManager.get());
|
||||
setState(AppState::CHARACTER_CREATION);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue