Temporary compensation for error calculating (possibly related to rounding) that caused misplacement of the initial pattern by 2 in the y axis.

This commit is contained in:
Dyego Maas
2022-01-12 19:50:32 -03:00
parent fd8c02371a
commit 5731a4df08

View File

@@ -66,7 +66,7 @@ Simulation InitializeSimulation(Pattern pattern, Matrix matrixToInitialize) {
if (pattern.Content[x][y] == ' ')
continue;
matrixToInitialize[minX + x, minY + y] = CellState.Stable;
matrixToInitialize[minX + x, minY + y + 2] = CellState.Stable;
newSimulation.IncreasePopulation();
}
}