summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-08-18 08:51:24 +0200
committerFedja Beader <fedja@protonmail.ch>2024-08-18 08:51:24 +0200
commit98bdcc1a051b78b6bf79ba3bf6510ffabe6018a8 (patch)
tree149c6efa6b8f009e88237d6caad5b71f0f3fe31b
parent0a72e4865107f6eaee1c842cfee448a6b791fc73 (diff)
downloadmanaplus-cuoco_choosedefault.tar.gz
manaplus-cuoco_choosedefault.tar.bz2
manaplus-cuoco_choosedefault.tar.xz
manaplus-cuoco_choosedefault.zip
So many indents leaving no space for code :|cuoco_choosedefaultcuoco-default
-rw-r--r--src/progs/manaplus/client.cpp12
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")