fix: problems with breakable on cs_mari (ref #686)
fix: goal selection on some zombie maps (ref #684)
This commit is contained in:
parent
aeff9f8d46
commit
d6d76e136d
12 changed files with 95 additions and 86 deletions
|
|
@ -599,6 +599,10 @@ IntArray BotGraph::getNearestInRadius (float radius, const Vector &origin, int m
|
|||
return result;
|
||||
}
|
||||
|
||||
bool BotGraph::isAnalyzed () const {
|
||||
return (m_info.header.options & StorageOption::Analyzed);
|
||||
}
|
||||
|
||||
void BotGraph::add (int type, const Vector &pos) {
|
||||
if (!hasEditor () && !analyzer.isAnalyzing ()) {
|
||||
return;
|
||||
|
|
@ -2836,22 +2840,6 @@ BotGraph::BotGraph () {
|
|||
m_editor = nullptr;
|
||||
}
|
||||
|
||||
void BotGraph::initBuckets () {
|
||||
m_hashTable.clear ();
|
||||
}
|
||||
|
||||
void BotGraph::addToBucket (const Vector &pos, int index) {
|
||||
m_hashTable[locateBucket (pos)].emplace (index);
|
||||
}
|
||||
|
||||
const Array <int32_t> &BotGraph::getNodesInBucket (const Vector &pos) {
|
||||
return m_hashTable[locateBucket (pos)];
|
||||
}
|
||||
|
||||
bool BotGraph::isAnalyzed () const {
|
||||
return (m_info.header.options & StorageOption::Analyzed);
|
||||
}
|
||||
|
||||
void BotGraph::eraseFromBucket (const Vector &pos, int index) {
|
||||
auto &data = m_hashTable[locateBucket (pos)];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue