Hide possible non-official kart from distro in online
This commit is contained in:
parent
32cc160630
commit
ab2bd2aa02
@ -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());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user