mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add AreaMap2D tests
This commit is contained in:
parent
6fdea11e2e
commit
ab110ab8bf
3 changed files with 90 additions and 10 deletions
|
|
@ -104,9 +104,12 @@ namespace util {
|
|||
return false;
|
||||
}
|
||||
auto& element = firstBuffer[ly * sizeX + lx];
|
||||
if (!element) {
|
||||
if (value && !element) {
|
||||
valuesCount++;
|
||||
}
|
||||
if (element && !value) {
|
||||
valuesCount--;
|
||||
}
|
||||
element = std::move(value);
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue