aboutsummaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-24 17:28:38 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-06-24 17:28:38 +0200
commit56107cb51647810cad31d835b3e75d016c7a4b01 (patch)
tree3f0341d2564383ac31dc538349a92cdddbdad67f /src/game
parent435629f40b811c9dc18de4f044ca1aa44e09d134 (diff)
downloadjancity-56107cb51647810cad31d835b3e75d016c7a4b01.tar.gz
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).
Diffstat (limited to 'src/game')
-rw-r--r--src/game/src/game.c3
1 files changed, 2 insertions, 1 deletions
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)