Back to shtanton's homepage
summaryrefslogtreecommitdiff
path: root/src/tick.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tick.c')
-rw-r--r--src/tick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tick.c b/src/tick.c
index e351155..a15c1cb 100644
--- a/src/tick.c
+++ b/src/tick.c
@@ -341,8 +341,8 @@ static void tick(Game *game, Arena a) {
}
}
- if (isBlue(game->state.grid[game->state.goalx + game->state.goaly * GRIDWIDTH])) {
- // TODO: Win conditions
+ if (game->state.grid[game->state.goalx + game->state.goaly * GRIDWIDTH] == BLUE) {
+ game->state.levelComplete = 1;
}
}