From 743e87e9b1a93d748f551262691554405269e598 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Tue, 22 Apr 2025 18:36:01 +0200 Subject: [PATCH] fix --- w/w.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/w/w.c b/w/w.c index de5046c..061abe5 100644 --- a/w/w.c +++ b/w/w.c @@ -127,6 +127,7 @@ char tileonmap(char tile) case TILE_VISITED: return ' '; // already visited case TILE_INIT: return '.'; // not yet initialized by dfs } + return '!'; } char charatpos(int x, int y) @@ -404,6 +405,7 @@ void forward() state.position.x -= 2; break; } + // todo not if start setatpos(state.position.x, state.position.y, TILE_VISITED); } } @@ -831,7 +833,7 @@ void update(char* command) { state.hero.gold -= item.price; state.inventory[i].count++; - debugoutput("%d\n", item.count); + // debugoutput("%d\n", item.count); } } }