From f174114b2a1c8eca6d07a519fa103ac7dabb773f Mon Sep 17 00:00:00 2001 From: nemo Date: Tue, 10 Jun 2025 23:19:47 +0200 Subject: [PATCH] fix bug G vision a travers P/E --- main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 1cb7600..9522868 100644 --- a/main.c +++ b/main.c @@ -342,6 +342,9 @@ int kill(Map map, Vec2i pos) map[pos.y][pos.x] = ' '; door_open = 1; break; + case 'P': case 'E': + killed = 1; + break; case 'A': map[pos.y][pos.x] = ' '; alarme_sonne = 1.2; @@ -539,7 +542,7 @@ int main(void) int max = pos.y > guard.pos.y ? pos.y : guard.pos.y; int walled = 0; for (int i=min; i guard.pos.x ? pos.x : guard.pos.x; int walled = 0; for (int i=min; i