From 659f69d0f07b6ebd1298c4f46655a53e37ae5720 Mon Sep 17 00:00:00 2001 From: dmitry Date: Fri, 17 Jun 2022 13:41:23 +0300 Subject: [PATCH] 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. --- src/graph.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/graph.cpp b/src/graph.cpp index 3a5d8c9..0719707 100644 --- a/src/graph.cpp +++ b/src/graph.cpp @@ -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");