Revert "Update meta_api.cpp (#883)" (#950)

This reverts commit 7cb045c688.
This commit is contained in:
Vincent Herbet 2021-03-12 18:36:40 +01:00 committed by GitHub
parent 70d1aff519
commit 3d517d69e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1021,7 +1021,7 @@ void C_ClientUserInfoChanged_Post(edict_t *pEntity, char *infobuffer)
if (pPlayer->ingame)
{
pPlayer->name =name; // Make sure player have name up to date
} else if (pEntity && pEntity->pvPrivateData && pPlayer->IsBot()) {
} else if (pPlayer->IsBot()) {
pPlayer->Connect(name, "127.0.0.1"/*CVAR_GET_STRING("net_address")*/);
executeForwards(FF_ClientConnect, static_cast<cell>(pPlayer->index));