diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-08-18 08:51:24 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-08-18 08:51:24 +0200 |
commit | 98bdcc1a051b78b6bf79ba3bf6510ffabe6018a8 (patch) | |
tree | 149c6efa6b8f009e88237d6caad5b71f0f3fe31b | |
parent | 0a72e4865107f6eaee1c842cfee448a6b791fc73 (diff) | |
download | manaplus-cuoco-default.tar.gz manaplus-cuoco-default.tar.bz2 manaplus-cuoco-default.tar.xz manaplus-cuoco-default.zip |
So many indents leaving no space for code :|cuoco_choosedefaultcuoco-default
-rw-r--r-- | src/progs/manaplus/client.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/progs/manaplus/client.cpp b/src/progs/manaplus/client.cpp index 90943812a..bdda61b76 100644 --- a/src/progs/manaplus/client.cpp +++ b/src/progs/manaplus/client.cpp @@ -1220,16 +1220,20 @@ int Client::gameExec() // Trust that the netcode knows what it's doing mState = State::UPDATE; } - else if (worlds.size() == 1 || settings.options.chooseDefault) + else if (worlds.size() == 1 || + settings.options.chooseDefault) { - // If there is only one world or chooseDefault is true, select the first world - loginHandler->chooseServer(0, mCurrentServer.persistentIp); + loginHandler->chooseServer( + 0, mCurrentServer.persistentIp); + mState = State::UPDATE; } else { // Otherwise, show the world selection dialog - CREATEWIDGETV(mCurrentDialog, WorldSelectDialog, worlds); + CREATEWIDGETV(mCurrentDialog, + WorldSelectDialog, + worlds); } } BLOCK_END("Client::gameExec State::WORLD_SELECT") |