Reindentation, typo fix
This commit is contained in:
parent
f1d3b75561
commit
524f035e76
2 changed files with 24 additions and 24 deletions
2
main.c
2
main.c
|
@ -1205,7 +1205,7 @@ static bool do_command()
|
||||||
BUG(VOCABULARY_TYPE_N_OVER_1000_NOT_BETWEEN_0_AND_3); // LCOV_EXCL_LINE
|
BUG(VOCABULARY_TYPE_N_OVER_1000_NOT_BETWEEN_0_AND_3); // LCOV_EXCL_LINE
|
||||||
}
|
}
|
||||||
|
|
||||||
if(command_given) {
|
if (command_given) {
|
||||||
switch (action(command)) {
|
switch (action(command)) {
|
||||||
case GO_TERMINATE:
|
case GO_TERMINATE:
|
||||||
return true;
|
return true;
|
||||||
|
|
4
misc.c
4
misc.c
|
@ -478,7 +478,7 @@ static void tokenize(char* raw, command_t *cmd)
|
||||||
* Be caereful about modifing this. We do not want to nuke the
|
* Be caereful about modifing this. We do not want to nuke the
|
||||||
* the speech part or ID from the previous turn.
|
* the speech part or ID from the previous turn.
|
||||||
*/
|
*/
|
||||||
memset(&cmd->word[0].raw, '\0', sizeof(cmd->word[0],raw));
|
memset(&cmd->word[0].raw, '\0', sizeof(cmd->word[0].raw));
|
||||||
memset(&cmd->word[1].raw, '\0', sizeof(cmd->word[1].raw));
|
memset(&cmd->word[1].raw, '\0', sizeof(cmd->word[1].raw));
|
||||||
|
|
||||||
/* Bound prefix on the %s would be needed to prevent buffer
|
/* Bound prefix on the %s would be needed to prevent buffer
|
||||||
|
@ -591,7 +591,7 @@ void carry(obj_t object, loc_t where)
|
||||||
return;
|
return;
|
||||||
game.place[object] = CARRIED;
|
game.place[object] = CARRIED;
|
||||||
|
|
||||||
if (object!= BIRD)
|
if (object != BIRD)
|
||||||
++game.holdng;
|
++game.holdng;
|
||||||
}
|
}
|
||||||
if (game.atloc[where] == object) {
|
if (game.atloc[where] == object) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue