diff --git a/src/in_game.c b/src/in_game.c index 8feb08b..60229da 100644 --- a/src/in_game.c +++ b/src/in_game.c @@ -335,11 +335,15 @@ void render(int w, int h){ if(objs[k].type == DOOR){ printw("\u25D9"); - }else if(objs[k].type == KEY){ - printw("k"); - }else if(objs[k].type == PERSON){ - printw("\u263A"); - } + }else{ + if(vis[dj][di]){ + if(objs[k].type == KEY){ + printw("k"); + }else if(objs[k].type == PERSON){ + printw("\u263A"); + } + } + } } }