This commit is contained in:
quenousimporte 2025-04-22 18:36:01 +02:00
parent 0773cd4d14
commit 743e87e9b1
1 changed files with 3 additions and 1 deletions

4
w/w.c
View File

@ -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);
}
}
}