mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-23 07:29:02 -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] == ' ')
|
if (pattern.Content[x][y] == ' ')
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
matrixToInitialize[minX + x, minY + y] = CellState.Stable;
|
matrixToInitialize[minX + x, minY + y + 2] = CellState.Stable;
|
||||||
newSimulation.IncreasePopulation();
|
newSimulation.IncreasePopulation();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user