mirror of
https://github.com/thepigeongenerator/sdl_template.git
synced 2025-12-19 10:15:45 +01:00
get rid of set_gamestatus as it's usecase is no longer relevant
This commit is contained in:
@@ -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...");
|
||||
|
||||
Reference in New Issue
Block a user