diff options
author | paradust7 <102263465+paradust7@users.noreply.github.com> | 2022-05-18 03:31:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-18 12:31:49 +0200 |
commit | 273bfee9a193d0dd2e9f9b400add980c0b5202a7 (patch) | |
tree | 181c37777b1f742d1fde7048d99ffd7c4d321a48 /src/unittest | |
parent | af37f9dc542e31f34d53da995ed86f2a3eacd9a5 (diff) | |
download | minetest-273bfee9a193d0dd2e9f9b400add980c0b5202a7.tar.gz minetest-273bfee9a193d0dd2e9f9b400add980c0b5202a7.tar.bz2 minetest-273bfee9a193d0dd2e9f9b400add980c0b5202a7.zip |
Use std::map instead of core::map (#12301)
Diffstat (limited to 'src/unittest')
-rw-r--r-- | src/unittest/test.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unittest/test.cpp b/src/unittest/test.cpp index f223d567e..676fe8e13 100644 --- a/src/unittest/test.cpp +++ b/src/unittest/test.cpp @@ -533,7 +533,7 @@ struct TestMapBlock: public TestBase parent.node.setContent(CONTENT_AIR); parent.node.setLight(LIGHTBANK_DAY, LIGHT_SUN); parent.node.setLight(LIGHTBANK_NIGHT, 0); - core::map<v3s16, bool> light_sources; + std::map<v3s16, bool> light_sources; // The bottom block is invalid, because we have a shadowing node UASSERT(b.propagateSunlight(light_sources) == false); UASSERT(b.getNode(v3s16(1,4,0)).getLight(LIGHTBANK_DAY) == LIGHT_SUN); @@ -560,7 +560,7 @@ struct TestMapBlock: public TestBase parent.position_valid = true; b.setIsUnderground(true); parent.node.setLight(LIGHTBANK_DAY, LIGHT_MAX/2); - core::map<v3s16, bool> light_sources; + std::map<v3s16, bool> light_sources; // The block below should be valid because there shouldn't be // sunlight in there either UASSERT(b.propagateSunlight(light_sources, true) == true); @@ -601,7 +601,7 @@ struct TestMapBlock: public TestBase } // Lighting value for the valid nodes parent.node.setLight(LIGHTBANK_DAY, LIGHT_MAX/2); - core::map<v3s16, bool> light_sources; + std::map<v3s16, bool> light_sources; // Bottom block is not valid UASSERT(b.propagateSunlight(light_sources) == false); } |