From 49807ffa5b3a9c147d7eadd18fd4368146f1343d Mon Sep 17 00:00:00 2001 From: Lars Date: Wed, 25 Jun 2025 10:21:08 -0700 Subject: [PATCH] rebase fix --- src/benchmark/benchmark_map.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/benchmark/benchmark_map.cpp b/src/benchmark/benchmark_map.cpp index 0a41fec5a..290fae292 100644 --- a/src/benchmark/benchmark_map.cpp +++ b/src/benchmark/benchmark_map.cpp @@ -5,7 +5,6 @@ #include "catch.h" #include "dummygamedef.h" #include "map.h" -#include "mapsector.h" namespace { class TestMap : public Map { @@ -14,20 +13,7 @@ public: MapBlock * createBlockTest(v3s16 p) { - v2s16 p2d(p.X, p.Z); - s16 block_y = p.Y; - - MapSector *sector = getSectorNoGenerate(p2d); - if (!sector) { - sector = new MapSector(this, p2d, m_gamedef); - m_sectors[p2d] = sector; - } - - MapBlock *block = sector->getBlockNoCreateNoEx(block_y); - if (block) - return block; - - return sector->createBlankBlock(block_y); + return createBlankBlock(p); } };