diff --git a/regamedll/dlls/bot/cs_bot.cpp b/regamedll/dlls/bot/cs_bot.cpp index b89a6912..2302e461 100644 --- a/regamedll/dlls/bot/cs_bot.cpp +++ b/regamedll/dlls/bot/cs_bot.cpp @@ -941,7 +941,7 @@ void CCSBot::RemovePath(CNavArea *area) void CCSBot::RemoveHidingSpot(HidingSpot *spot) { int i = 0; - while (i < m_pathLength) + while (i < m_checkedHidingSpotCount) { if (m_checkedHidingSpot[i].spot == spot) { diff --git a/regamedll/dlls/bot/cs_bot_manager.cpp b/regamedll/dlls/bot/cs_bot_manager.cpp index 15fc3de2..8c7c7a1f 100644 --- a/regamedll/dlls/bot/cs_bot_manager.cpp +++ b/regamedll/dlls/bot/cs_bot_manager.cpp @@ -1535,7 +1535,7 @@ void CCSBotManager::OnDestroyNavDataNotify(NavNotifyDestroyType navNotifyType, v // and triggers a game restart after the analysis is completed void CCSBotManager::AnalysisCompleted() { - // Ensure that all bots are no longer involved in map analysis and start their normal process + // Ensure that all bots are no longer involved in map analysis and start their normal process for (int i = 1; i <= gpGlobals->maxClients; i++) { CBasePlayer *pPlayer = UTIL_PlayerByIndex(i); @@ -1554,10 +1554,10 @@ void CCSBotManager::AnalysisCompleted() m_isMapDataLoaded = false; m_isAnalysisRequested = false; - // Try to reload the navigation map from the file + // Try to reload the navigation map from the file if (LoadNavigationMap()) { - // Initiate a game restart in 3 seconds + // Initiate a game restart in 3 seconds CVAR_SET_FLOAT("sv_restart", 3); } }