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
commitd07b682c9b283216d4c2d1f046483b165958d929 (patch)
tree53ca549248e4239da55af3a5aa451125c98f4d1c /src/game
parentf34113de515522dd76709403be5015698c6fbd29 (diff)
downloadjancity-d07b682c9b283216d4c2d1f046483b165958d929.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;