From 8524301a3c4348a8efd608f39dd4a9fd1991e775 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 22 Jun 2023 22:56:48 +0100 Subject: When player is hit, exit the update --- src/player.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/player.c b/src/player.c index 7b51a35..856cafd 100644 --- a/src/player.c +++ b/src/player.c @@ -235,7 +235,10 @@ void player_update() /* is a deadly block? */ if (map_is_deadly(x + 11, y + 16) || map_is_deadly(x + 4, y + 16)) + { player_hit(); + return; + } break; } y++; -- cgit v1.2.3