Tools/Misc: Document strange array access indexing

This commit is contained in:
Shauren authored and Ovahlord committed 2026-03-09 22:22:41 +01:00
1 parent c0634aece4
commit fcc4138e04
1 file changed
+2
+2
View File
@@ -511,6 +511,7 @@ bool ConvertADT(std::string const& inputPath, std::string const& outputPath, int
// Set map height as grid height
for (int y = 0; y <= ADT_CELL_SIZE; y++)
{
// edge V9s are overlapping between cells (i * ADT_CELL_SIZE is correct, otherwise we would be missing a row/column of V8s between)
int cy = mcnk->iy * ADT_CELL_SIZE + y;
for (int x = 0; x <= ADT_CELL_SIZE; x++)
{
@@ -536,6 +537,7 @@ bool ConvertADT(std::string const& inputPath, std::string const& outputPath, int
// get V9 height map
for (int y = 0; y <= ADT_CELL_SIZE; y++)
{
// edge V9s are overlapping between cells (i * ADT_CELL_SIZE is correct, otherwise we would be missing a row/column of V8s between)
int cy = mcnk->iy * ADT_CELL_SIZE + y;
for (int x = 0; x <= ADT_CELL_SIZE; x++)
{