From 7b78311c1dc5fb001236ddccf73c6f1c0c004164 Mon Sep 17 00:00:00 2001 From: Jason Bou-Samra <154414066+bou-samra@users.noreply.github.com> Date: Sun, 20 Oct 2024 19:03:21 +1100 Subject: [PATCH] Update research.c --- src/research.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/research.c b/src/research.c index 86bae22..90f31d7 100644 --- a/src/research.c +++ b/src/research.c @@ -13,6 +13,7 @@ #include "column.h" #include "sdl.h" #include "hiscore.h" +#include "backdrop.h" #define DEBUG 0 @@ -283,4 +284,10 @@ int clear_mat(void) { grid[1][i][j] = 0; } } + if (!(total % 50)) { // increment backdrop every 50 drops + colour = colour + 10; + if (colour >= 69) {colour = 0;} + backdrop(colour); + } + }