From 7064baa135947cb0321db111ad510ba832966d68 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Sun, 6 Apr 2025 18:53:05 +0100 Subject: only allow placing stuff available in the level --- src/tick.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tick.c') 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; } } -- cgit v1.2.3