fix saving chunk coords. oof

This commit is contained in:
T1ti
2024-04-25 23:41:32 +02:00
parent 6cec6a954b
commit b334b8e39f

View File

@@ -1433,8 +1433,8 @@ void MapChunk::save(sExtendableArray& lADTFile
lMCNK_header->flags = header_flags.value; lMCNK_header->flags = header_flags.value;
lMCNK_header->ix = px; lMCNK_header->ix = px;
lMCNK_header->iy = py; lMCNK_header->iy = py;
lMCNK_header->zpos = zbase; lMCNK_header->zpos = zbase * -1.0f + ZEROPOINT;
lMCNK_header->xpos = xbase; lMCNK_header->xpos = xbase * -1.0f + ZEROPOINT;
lMCNK_header->ypos = ybase; lMCNK_header->ypos = ybase;
lMCNK_header->holes = holes; lMCNK_header->holes = holes;