fixed bot's crashing on cs 1.3

This commit is contained in:
Dmitry 2015-06-16 01:10:29 +03:00
commit a843dc58a4

View file

@ -1217,7 +1217,7 @@ void Bot::StartGame (void)
void BotManager::CalculatePingOffsets (void)
{
if (yb_latency_display.GetInt () != 2)
if (g_gameVersion == CSV_OLD || yb_latency_display.GetInt () != 2)
return;
int averagePing = 0;
@ -1277,7 +1277,7 @@ void BotManager::CalculatePingOffsets (void)
void BotManager::SendPingDataOffsets (edict_t *to)
{
if (yb_latency_display.GetInt () != 2)
if (g_gameVersion == CSV_OLD || yb_latency_display.GetInt () != 2)
return;
if (IsEntityNull (to))