Enable location feature if bots allowed or listen server is running

This commit is contained in:
s1lentq 2023-07-16 04:17:14 +07:00
parent ad13545dac
commit c526fa5885

View File

@ -9931,7 +9931,7 @@ void CBasePlayer::UpdateLocation(bool forceUpdate)
const char *placeName = "";
if (pev->deadflag == DEAD_NO && AreRunningCZero())
if (pev->deadflag == DEAD_NO && AreBotsAllowed())
{
// search the place name where is located the player
Place playerPlace = TheNavAreaGrid.GetPlace(&pev->origin);