mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 23:26:40 -08:00
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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user