get rid of set_gamestatus as it's usecase is no longer relevant

This commit is contained in:
2025-03-22 12:21:34 +01:00
parent aeaba3262f
commit 7e5236db7c
5 changed files with 7 additions and 18 deletions

View File

@@ -33,7 +33,7 @@ static void update(void) {
while (SDL_PollEvent(&e)) {
switch (e.type) {
case SDL_QUIT:
set_gamestatus(STATUS_SUCCESS);
gdat->run = false;
break;
}
}
@@ -52,7 +52,7 @@ int32_t main(int32_t argc, char** argv) {
init();
debug("successfully initialized!");
while (get_gamestatus() == STATUS_RUNNING)
while (gdat->run == true)
update();
debug("done! starting to free resources...");