Skip to content
Snippets Groups Projects
Commit a68b1638 authored by Leonardo Krambeck's avatar Leonardo Krambeck
Browse files

adiciona teste no incrementGeneration

parent 9e84e86a
No related branches found
No related tags found
No related merge requests found
......@@ -288,6 +288,8 @@ void incrementGeneration (game_t *game)
for ( i=0; i < game->next.rows; i++ )
for ( j=0; j < game->next.cols; j++ )
/* Change the data only if it changed */
if (game->this.generation[i][j] != game->next.generation[i][j])
game->this.generation[i][j] = game->next.generation[i][j];
game->generationNumber++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment