summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cgol.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cgol.c b/src/cgol.c
index 6add490..b779961 100644
--- a/src/cgol.c
+++ b/src/cgol.c
@@ -84,6 +84,7 @@ main(int argc, char **argv)
init_curses();
init_game();
+ /* TODO: Write a better main event loop with a good controller and timer. */
timeout(1000);
for (;;) {
c = getch();
@@ -178,7 +179,6 @@ void
tick()
{
int i, j, n;
- bool *grid_tmp;
for (i = 0; i < height; ++i) {
for (j = 0; j < width; ++j) {
@@ -233,6 +233,7 @@ set_cell(int i, int j, bool s)
void
print_cell(int i, int j, bool next)
{
+ /* TODO: Center this. */
if (next) {
mvprintw(1 + i, 1 + j * 2, "%c", grid_next[i * width + j] ? 'o' : ' ');
} else {