From 992e7fb9358a0d0a5d99ba119cf584477bda8d72 Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 24 Jun 2022 17:28:38 +0200 Subject: peripheral: provide common actions Whereas some actions are context-specific (e.g.: selecting a player), some are context-independent and can be executed for all screens (e.g.: exiting the game). --- src/game/src/game.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game') diff --git a/src/game/src/game.c b/src/game/src/game.c index dc3d55b..bcab5f2 100644 --- a/src/game/src/game.c +++ b/src/game/src/game.c @@ -88,7 +88,8 @@ int game(void) .n_res = sizeof res / sizeof *res }; - exit |= human_player_update(&humans[i], &o); + human_player_update(&humans[i], &o); + exit |= humans[i].periph.common.exit; terrain_update(&map); if (terrain_render(&map, &h->cam) -- cgit v1.2.3