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:
parent
8a9ccfd083
commit
db79df8d38
9 changed files with 127 additions and 145 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue