Reindentation
This commit is contained in:
parent
f0dc3d3b7c
commit
0fbd79b608
4 changed files with 72 additions and 73 deletions
|
@ -1508,7 +1508,7 @@ int action(command_t command)
|
|||
case RUB:
|
||||
return rub(command.verb, command.obj);
|
||||
case THROW:
|
||||
return throw(command);
|
||||
return throw (command);
|
||||
case QUIT: {
|
||||
speak(actions[command.verb].message);
|
||||
return GO_CLEAROBJ;
|
||||
|
|
2
advent.h
2
advent.h
|
@ -134,7 +134,7 @@ struct game_t {
|
|||
long dflag;
|
||||
|
||||
long dkill; // dwarves killed
|
||||
long dtotal; // total dwarves (including pirate)
|
||||
long dtotal; // total dwarves (including pirate) in loc
|
||||
long foobar; // progress in saying "FEE FIE FOE FOO".
|
||||
long holdng; // number of objects being carried
|
||||
long igo; // # uses of "go" instead of a direction
|
||||
|
|
4
main.c
4
main.c
|
@ -1134,7 +1134,7 @@ Lclearobj:
|
|||
}
|
||||
|
||||
/* From OV to VO form */
|
||||
if (command.word[0].type==OBJECT && command.word[1].type==ACTION) {
|
||||
if (command.word[0].type == OBJECT && command.word[1].type == ACTION) {
|
||||
command_word_t stage = command.word[0];
|
||||
command.word[0] = command.word[1];
|
||||
command.word[1] = stage;
|
||||
|
@ -1165,7 +1165,7 @@ Lookup:
|
|||
command.obj = command.word[0].id;
|
||||
break;
|
||||
case ACTION:
|
||||
if(command.word[1].type == NUMERIC)
|
||||
if (command.word[1].type == NUMERIC)
|
||||
command.part = transitive;
|
||||
else
|
||||
command.part = intransitive;
|
||||
|
|
3
misc.c
3
misc.c
|
@ -402,8 +402,7 @@ static bool is_valid_int(const char *str)
|
|||
return false; // LCOV_EXCL_LINE
|
||||
|
||||
// Check for non-digit chars in the rest of the stirng.
|
||||
while (*str)
|
||||
{
|
||||
while (*str) {
|
||||
if (!isdigit(*str))
|
||||
return false;
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue