Use switch

This commit is contained in:
2026-02-25 11:33:55 +01:00
parent b8cd1ce56f
commit 02938c7933

View File

@@ -10,8 +10,11 @@ player_t player_create(uint16_t x, uint16_t y) {
void player_process_action(player_t *player, const char *action) {
// Quit on q
if (action[0] == 'q') {
exit(0);
switch (action[0]) {
case 'q':
exit(0);
default:
break;
}
(void)player;