Move arup below updating playercount.

This commit is contained in:
Salanto 2022-03-14 18:45:22 +01:00
parent 06aebc1f81
commit 601fa10f4f

View File

@ -135,10 +135,7 @@ void AOClient::pktLoadingDone(AreaData* area, int argc, QStringList argv, AOPack
server->m_player_count++;
m_joined = true;
server->updateCharsTaken(area);
arup(ARUPType::PLAYER_COUNT, true); // Tell everyone there is a new player
sendEvidenceList(area);
sendPacket("HP", {"1", QString::number(area->defHP())});
sendPacket("HP", {"2", QString::number(area->proHP())});
sendPacket("FA", server->m_area_names);
@ -169,6 +166,7 @@ void AOClient::pktLoadingDone(AreaData* area, int argc, QStringList argv, AOPack
}
emit server->updatePlayerCount(server->m_player_count);
area->clientJoinedArea(-1, m_id);
arup(ARUPType::PLAYER_COUNT, true); // Tell everyone there is a new player
}
void AOClient::pktCharPassword(AreaData* area, int argc, QStringList argv, AOPacket packet)