From d07b682c9b283216d4c2d1f046483b165958d929 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Tue, 24 May 2022 22:08:18 +0200 Subject: Make gfx_draw return int --- src/game/src/game.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/src/game.c b/src/game/src/game.c index e1a316e..dede611 100644 --- a/src/game/src/game.c +++ b/src/game/src/game.c @@ -94,7 +94,9 @@ int game(void) } instance_cyclic(); - gfx_draw(); + + if (gfx_draw()) + goto end; } ret = 0; -- cgit v1.2.3