trailing spaces

This commit is contained in:
quenousimporte 2025-04-21 22:30:23 +02:00
parent d6f1d9cad7
commit 0773cd4d14
1 changed files with 9 additions and 9 deletions

18
w/w.c
View File

@ -748,7 +748,7 @@ void update(char* command)
state.position.x = 1;
state.position.y = 13;
state.position.orientation = NORTH;
if (map[0] == 0)
{
initmap();
@ -912,28 +912,28 @@ void draw()
/*printf("\n\n");
switch (state.position.orientation)
{
case NORTH:
case NORTH:
printf(" ^\n");
printf(" - -\n");
printf(" -\n");
printf(" -\n");
break;
case EAST:
case EAST:
printf(" -\n");
printf(" - >\n");
printf(" -\n");
printf(" -\n");
break;
case SOUTH:
printf(" -\n");
printf(" - -\n");
printf(" v\n");
printf(" v\n");
break;
case WEST:
printf(" -\n");
printf(" < -\n");
printf(" -\n");
printf(" -\n");
break;
}*/
printf("\n\n");
printf("i: Inventaire\n");
if (charatpos(state.position.x, state.position.y) == TILE_START)
@ -1022,7 +1022,7 @@ int main()
draw();
getcommand(command);
}
printf("Partie enregistrée.");
savestate();
return 0;