Hide possible non-official kart from distro in online

This commit is contained in:
Benau 2020-07-18 10:17:52 +08:00
parent 32cc160630
commit ab2bd2aa02

View File

@ -186,6 +186,10 @@ ServerLobby::ServerLobby() : LobbyProtocol()
for (int kart : all_k) for (int kart : all_k)
{ {
const KartProperties* kp = kart_properties_manager->getKartById(kart); const KartProperties* kp = kart_properties_manager->getKartById(kart);
// Some distro put kart itself, ignore it online for the rest of stk
// user
if (kp->getIdent() == "geeko")
continue;
if (!kp->isAddon()) if (!kp->isAddon())
m_official_kts.first.insert(kp->getIdent()); m_official_kts.first.insert(kp->getIdent());
} }