From 61d91a188892bc077a354361a7eb1d35ad792568 Mon Sep 17 00:00:00 2001 From: Miguel Angel Astor Romero Date: Fri, 26 May 2017 23:44:52 -0400 Subject: [PATCH] Secret walls dissapear when player passes them. --- src/in_game.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/in_game.c b/src/in_game.c index 1baf3a2..9830335 100644 --- a/src/in_game.c +++ b/src/in_game.c @@ -231,6 +231,11 @@ gsname_t update(){ } } + /* If the player walks through a secret wall then clear it. */ + if (map[iY][iX].f == SECRET_WALL) { + map[iY][iX].f = EMPTY_FLOOR; + } + /* Clear the message buffer after a timeout. */ if(newMsg){ msgNow = clock();