Comment polishing.

This commit is contained in:
Eric S. Raymond 2017-06-20 13:38:11 -04:00
parent f50e984cec
commit e37f858b08
2 changed files with 11 additions and 14 deletions

17
main.c
View file

@ -184,11 +184,9 @@ static bool fallback_handler(char *buf)
return false; return false;
} }
/* Check if this loc is eligible for any hints. If been here /* Check if this loc is eligible for any hints. If been here long
* long enough, branch to help section (on later page). Hints * enough, display. Ignore "HINTS" < 4 (special stuff, see database
* all come back here eventually to finish the loop. Ignore * notes). */
* "HINTS" < 4 (special stuff, see database notes).
*/
static void checkhints(void) static void checkhints(void)
{ {
if (COND[game.loc] >= game.conds) { if (COND[game.loc] >= game.conds) {
@ -850,12 +848,11 @@ static void lampcheck(void)
--game.limit; --game.limit;
/* Another way we can force an end to things is by having the /* Another way we can force an end to things is by having the
* lamp give out. When it gets close, we come here to warn * lamp give out. When it gets close, we come here to warn him.
* him. First following ar, if the lamp and fresh batteries are * First following arm checks if the lamp and fresh batteries are
* here, in which case we replace the batteries and continue. * here, in which case we replace the batteries and continue.
* Second is for other cases of lamp dying. 12400 is when it * Second is for other cases of lamp dying. Eve after it goes
* goes out. Even then, he can explore outside for a while * out, he can explore outside for a while if desired. */
* if desired. */
if (game.limit <= WARNTIME && HERE(BATTERY) && game.prop[BATTERY] == 0 && HERE(LAMP)) { if (game.limit <= WARNTIME && HERE(BATTERY) && game.prop[BATTERY] == 0 && HERE(LAMP)) {
RSPEAK(REPLACE_BATTERIES); RSPEAK(REPLACE_BATTERIES);
game.prop[BATTERY] = 1; game.prop[BATTERY] = 1;

8
misc.c
View file

@ -663,10 +663,10 @@ bool MAPLIN(FILE *fp)
* If the data file uses a character other than space (e.g., tab) to * If the data file uses a character other than space (e.g., tab) to
* separate numbers, that character should also translate to 0. * separate numbers, that character should also translate to 0.
* *
* This procedure may use the map1,map2 arrays to maintain static data for * This procedure may use the map1,map2 arrays to maintain
* the mapping. MAP2(1) is set to 0 when the program starts * static data for he mapping. MAP2(1) is set to 0 when the
* and is not changed thereafter unless the routines on this page choose * program starts and is not changed thereafter unless the
* to do so. */ * routines in this module choose to do so. */
LNLENG = 0; LNLENG = 0;
for (long i = 1; i <= (long)sizeof(INLINE) && INLINE[i] != 0; i++) { for (long i = 1; i <= (long)sizeof(INLINE) && INLINE[i] != 0; i++) {
long val = INLINE[i]; long val = INLINE[i];