aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-05-24 22:08:18 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-05-24 22:20:04 +0200
commit938ab934826ba8b94a1ea43ce7f6b583cee10b50 (patch)
treeeb5f4f84d3233ac32073bed6ecdac4b78ee79236 /src/game
parent132d8c860eab54f95596780b005c97fd05fc277f (diff)
downloadrts-938ab934826ba8b94a1ea43ce7f6b583cee10b50.tar.gz
Make gfx_draw return int
Diffstat (limited to 'src/game')
-rw-r--r--src/game/src/game.c4
1 files changed, 3 insertions, 1 deletions
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;