fixed crash on escaping from bomb on really small maps (de_iceworld ie)

reworked how yb_quota works
fixed engine is not notified about bot cvar is beeing changed
This commit is contained in:
jeefo 2016-06-23 15:30:19 +03:00
commit db79df8d38
9 changed files with 127 additions and 145 deletions

View file

@ -1264,6 +1264,18 @@ void Bot::FindShortestPath (int srcIndex, int destIndex)
{
// this function finds the shortest path from source index to destination index
if (srcIndex > g_numWaypoints - 1 || srcIndex < 0)
{
AddLogEntry (true, LL_ERROR, "Pathfinder source path index not valid (%d)", srcIndex);
return;
}
if (destIndex > g_numWaypoints - 1 || destIndex < 0)
{
AddLogEntry (true, LL_ERROR, "Pathfinder destination path index not valid (%d)", destIndex);
return;
}
DeleteSearchNodes ();
m_chosenGoalIndex = srcIndex;