add StructurePlacement & add SurroundMap visualization test

This commit is contained in:
MihailRis
2024-09-20 23:43:54 +03:00
parent 88b0f8e3d6
commit 4f882a3ca3
5 changed files with 72 additions and 9 deletions
+1 -1
View File
@@ -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) {