More player leaving fixes (#6148)

* Remove unnecessary parentheses.

Took 16 minutes

* Reorder player-left signals

Took 11 seconds

* Connect PlayerManager::playerRemoved signal to TabGame::processPlayerLeave.

Took 21 seconds

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
BruebachL 2025-09-15 20:03:00 +02:00 committed by GitHub
parent f4fbe90a72
commit 190ab211e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

@ -85,7 +85,7 @@ void GameScene::rearrange()
Player *p = playersIter.next()->getPlayer();
if (p && !p->getConceded()) {
playersPlaying.append(p);
if (!firstPlayerFound && (p->getPlayerInfo()->getLocal())) {
if (!firstPlayerFound && p->getPlayerInfo()->getLocal()) {
firstPlayerIndex = playersPlaying.size() - 1;
firstPlayerFound = true;
}