mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-17 15:02:27 +03:00
fix typo
This commit is contained in:
parent
a4d74392f0
commit
f3d8d1b5fd
@ -941,7 +941,7 @@ void CCSBot::RemovePath(CNavArea *area)
|
|||||||
void CCSBot::RemoveHidingSpot(HidingSpot *spot)
|
void CCSBot::RemoveHidingSpot(HidingSpot *spot)
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (i < m_pathLength)
|
while (i < m_checkedHidingSpotCount)
|
||||||
{
|
{
|
||||||
if (m_checkedHidingSpot[i].spot == spot)
|
if (m_checkedHidingSpot[i].spot == spot)
|
||||||
{
|
{
|
||||||
|
@ -1535,7 +1535,7 @@ void CCSBotManager::OnDestroyNavDataNotify(NavNotifyDestroyType navNotifyType, v
|
|||||||
// and triggers a game restart after the analysis is completed
|
// and triggers a game restart after the analysis is completed
|
||||||
void CCSBotManager::AnalysisCompleted()
|
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++)
|
for (int i = 1; i <= gpGlobals->maxClients; i++)
|
||||||
{
|
{
|
||||||
CBasePlayer *pPlayer = UTIL_PlayerByIndex(i);
|
CBasePlayer *pPlayer = UTIL_PlayerByIndex(i);
|
||||||
@ -1554,10 +1554,10 @@ void CCSBotManager::AnalysisCompleted()
|
|||||||
m_isMapDataLoaded = false;
|
m_isMapDataLoaded = false;
|
||||||
m_isAnalysisRequested = false;
|
m_isAnalysisRequested = false;
|
||||||
|
|
||||||
// Try to reload the navigation map from the file
|
// Try to reload the navigation map from the file
|
||||||
if (LoadNavigationMap())
|
if (LoadNavigationMap())
|
||||||
{
|
{
|
||||||
// Initiate a game restart in 3 seconds
|
// Initiate a game restart in 3 seconds
|
||||||
CVAR_SET_FLOAT("sv_restart", 3);
|
CVAR_SET_FLOAT("sv_restart", 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user