graph: do not touch buckets while editing graph.

it's not necessary as buckets are created upon every graph load, so it's just waste of cpu cycles while editing graph.
This commit is contained in:
dmitry 2022-06-17 13:41:23 +03:00
commit 659f69d0f0
No known key found for this signature in database
GPG key ID: 8297CE728B7A7E37

View file

@ -658,8 +658,6 @@ void BotGraph::add (int type, const Vector &pos) {
// store the origin (location) of this node
path->origin = newOrigin;
addToBucket (newOrigin, index);
path->start = nullptr;
path->end = nullptr;
@ -869,7 +867,6 @@ void BotGraph::erase (int target) {
}
}
}
eraseFromBucket (path.origin, index);
m_paths.remove (path);
game.playSound (m_editor, "weapons/mine_activate.wav");