diff options
Diffstat (limited to 'CollisionContext.cpp')
-rw-r--r-- | CollisionContext.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/CollisionContext.cpp b/CollisionContext.cpp index 648b889..e7550e5 100644 --- a/CollisionContext.cpp +++ b/CollisionContext.cpp @@ -12,12 +12,6 @@ shared_ptr<QuadTree> CollisionContext::get_quadtree() { } void CollisionContext::update() { - this->quadtree = std::make_shared<QuadTree>(); - this->quadtree->boundary = { - .x = 0.0, - .y = 0.0, - .width = static_cast<float>(this->museum.canvas.data.columns), - .height = static_cast<float>(this->museum.canvas.data.rows), - }; + this->quadtree = std::make_shared<QuadTree>(this->museum); } |