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:
parent
42648a41a9
commit
659f69d0f0
1 changed files with 0 additions and 3 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue