Correction d'erreurs d'étourderie
Dans les commandes de la fonction interact() dans le for(;;), les commandes des STR_STARTS_WITH doivent correspondre à leurs homologues plus bas dans les if.
This commit is contained in:
parent
a3295272f0
commit
cc4f2584ed
@ -175,7 +175,7 @@ void interact(int width)
|
|||||||
{
|
{
|
||||||
pop_back(gd->player_route);
|
pop_back(gd->player_route);
|
||||||
}
|
}
|
||||||
strcpy(buffer, prompt+strlen("z"));
|
strcpy(buffer, prompt+strlen("undo"));
|
||||||
ltrim(prompt, buffer);
|
ltrim(prompt, buffer);
|
||||||
}
|
}
|
||||||
else if STR_STARTS_WITH(prompt, "left")
|
else if STR_STARTS_WITH(prompt, "left")
|
||||||
@ -264,7 +264,7 @@ void interact(int width)
|
|||||||
{
|
{
|
||||||
pop_back(gd->player_route);
|
pop_back(gd->player_route);
|
||||||
}
|
}
|
||||||
strcpy(buffer, prompt+strlen("undo"));
|
strcpy(buffer, prompt+strlen("d"));
|
||||||
ltrim(prompt, buffer);
|
ltrim(prompt, buffer);
|
||||||
}
|
}
|
||||||
else if STR_STARTS_WITH(prompt, "z")
|
else if STR_STARTS_WITH(prompt, "z")
|
||||||
@ -274,7 +274,7 @@ void interact(int width)
|
|||||||
case 1: puts("Cannot move: border of the grid"); break;
|
case 1: puts("Cannot move: border of the grid"); break;
|
||||||
case 2: puts("Cannot move: already went there"); break;
|
case 2: puts("Cannot move: already went there"); break;
|
||||||
}
|
}
|
||||||
strcpy(buffer, prompt+strlen("d"));
|
strcpy(buffer, prompt+strlen("z"));
|
||||||
ltrim(prompt, buffer);
|
ltrim(prompt, buffer);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user