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