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