mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
add StructurePlacement & add SurroundMap visualization test
This commit is contained in:
parent
88b0f8e3d6
commit
4f882a3ca3
5 changed files with 72 additions and 9 deletions
|
|
@ -62,7 +62,7 @@ namespace util {
|
|||
return &firstBuffer[ly * sizeX + lx];
|
||||
}
|
||||
|
||||
T get(TCoord x, TCoord y) {
|
||||
T get(TCoord x, TCoord y) const {
|
||||
auto lx = x - offsetX;
|
||||
auto ly = y - offsetY;
|
||||
if (lx < 0 || ly < 0 || lx >= sizeX || ly >= sizeY) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue