Comment polishing.
This commit is contained in:
parent
27bc9f3bd2
commit
ceb5c27218
1 changed files with 10 additions and 6 deletions
16
main.c
16
main.c
|
@ -584,8 +584,8 @@ static bool playermove(token_t verb, int motion)
|
||||||
game.oldloc = game.loc;
|
game.oldloc = game.loc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Look for a way to fulfil the motion - kk indexes the beginning
|
/* Look for a way to fulfil the motion verb passed in - kk indexes
|
||||||
* of the motion entries for here (game.loc). */
|
* the beginning of the motion entries for here (game.loc). */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (T_TERMINATE(travel[kk]) || travel[kk].motion == motion)
|
if (T_TERMINATE(travel[kk]) || travel[kk].motion == motion)
|
||||||
break;
|
break;
|
||||||
|
@ -606,14 +606,18 @@ static bool playermove(token_t verb, int motion)
|
||||||
}
|
}
|
||||||
++kk;
|
++kk;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* (ESR) We've found a destination that goes with the motion verb.
|
||||||
|
* Next we need to check any conditional(s) on this destination, and
|
||||||
|
* possibly on following entries. */
|
||||||
scratchloc = T_HIGH(travel[kk]);
|
scratchloc = T_HIGH(travel[kk]);
|
||||||
|
|
||||||
do {
|
do {
|
||||||
/*
|
/*
|
||||||
* (ESR) This special-travel loop may have to be repeated if it includes
|
* (ESR) This conditional-skip loop may have to be repeated if
|
||||||
* the plover passage. Same deal for any future cases where we need to
|
* it includes the plover passage. Same deal for any future
|
||||||
* block travel and then redo it once the blocking condition has been
|
* cases where we need to block travel and then redo it once
|
||||||
* removed.
|
* the blocking condition has been removed.
|
||||||
*/
|
*/
|
||||||
for (;;) { /* L12 loop */
|
for (;;) { /* L12 loop */
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue