projects
/
open-adventure.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f50e984
)
Comment polishing.
author
Eric S. Raymond
<esr@thyrsus.com>
Tue, 20 Jun 2017 17:38:11 +0000
(13:38 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Tue, 20 Jun 2017 17:38:11 +0000
(13:38 -0400)
main.c
patch
|
blob
|
history
misc.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 7bedea9afb1368fdab91f7c13d43752a559394c3..e16362a0c1b2c767259288744ae4cfe4409d3979 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-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
- * long enough, branch to help section (on later page). Hints
- * all come back here eventually to finish the loop. Ignore
- * "HINTS" < 4 (special stuff, see database notes).
- */
+/* Check if this loc is eligible for any hints. If been here long
+ * enough, display. Ignore "HINTS" < 4 (special stuff, see database
+ * notes). */
static void checkhints(void)
{
if (COND[game.loc] >= game.conds) {
static void checkhints(void)
{
if (COND[game.loc] >= game.conds) {
@@
-850,12
+848,11
@@
static void lampcheck(void)
--game.limit;
/* Another way we can force an end to things is by having the
--game.limit;
/* 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
- *
him. First following ar,
if the lamp and fresh batteries are
+ * lamp give out. When it gets close, we come here to warn
him.
+ *
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
- * goes out. Even then, he can explore outside for a while
- * if desired. */
+ * Second is for other cases of lamp dying. Eve after it goes
+ * out, he can explore outside for a while if desired. */
if (game.limit <= WARNTIME && HERE(BATTERY) && game.prop[BATTERY] == 0 && HERE(LAMP)) {
RSPEAK(REPLACE_BATTERIES);
game.prop[BATTERY] = 1;
if (game.limit <= WARNTIME && HERE(BATTERY) && game.prop[BATTERY] == 0 && HERE(LAMP)) {
RSPEAK(REPLACE_BATTERIES);
game.prop[BATTERY] = 1;
diff --git
a/misc.c
b/misc.c
index 71c7540669b2b3b8e178220360a89dd4cb8b9ea6..6042f764d53b51adfd62253565dcc102a70ae048 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-663,10
+663,10
@@
bool MAPLIN(FILE *fp)
* If the data file uses a character other than space (e.g., tab) to
* separate numbers, that character should also translate to 0.
*
* If the data file uses a character other than space (e.g., tab) to
* separate numbers, that character should also translate to 0.
*
- * This procedure may use the map1,map2 arrays to maintain
static data for
- *
the mapping. MAP2(1) is set to 0 when the program starts
- *
and is not changed thereafter unless the routines on this page choos
e
- * to do so. */
+ * This procedure may use the map1,map2 arrays to maintain
+ *
static data for he mapping. MAP2(1) is set to 0 when the
+ *
program starts and is not changed thereafter unless th
e
+ *
routines in this module choose
to do so. */
LNLENG = 0;
for (long i = 1; i <= (long)sizeof(INLINE) && INLINE[i] != 0; i++) {
long val = INLINE[i];
LNLENG = 0;
for (long i = 1; i <= (long)sizeof(INLINE) && INLINE[i] != 0; i++) {
long val = INLINE[i];