From 064a88d0fd20cf5b49840c3f804a846546316892 Mon Sep 17 00:00:00 2001 From: Jason Bou-Samra <154414066+bou-samra@users.noreply.github.com> Date: Wed, 9 Oct 2024 20:06:15 +1100 Subject: [PATCH] Update research.c --- src/research.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/research.c b/src/research.c index fff2be2..d3b50e7 100644 --- a/src/research.c +++ b/src/research.c @@ -12,8 +12,10 @@ #include "render.h" #include "column.h" #include "sdl.h" +#include "hiscore.h" #define DEBUG 0 + //////////////////// DETECT CLUSTERS ////////////////////// bool research(void) { @@ -269,6 +271,7 @@ int floor, ceiling, num_tiles; int clear_mat(void) { for (int j = 0; j < 8; j++) { for (int i = 0; i < 18; i++) { + if (grid[1][i][j] == 1) {total++;} grid[1][i][j] = 0; } }