formatting fixup (1 of 2)
Replace instances of strings split across lines which rely on C89/C90 implicit concatenation of string literals to splice them together with single strings that are outdented relative to the code that uses them. It's uglier but it won't break compile for pre-ANSI compilers. This covers many files in src/ that only have one or two such split strings. There are several more files which have three or more. Those will eventually be '(2 of 2)'. Noticed along the way: the fake mail message/subject Report bugs to devteam@nethack.org. wasn't using its format string of "Report bugs to %s.", so would have just shown our email address. Doesn't anybody enable fake mail anymore? I modified that format to enclose the address within angle brackets and made a similar change for the 'contact' choice of the '?' command.
This commit is contained in:
20
src/sounds.c
20
src/sounds.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 sounds.c $NHDT-Date: 1434750452 2015/06/19 21:47:32 $ $NHDT-Branch: master $:$NHDT-Revision: 1.68 $ */
|
||||
/* NetHack 3.6 sounds.c $NHDT-Date: 1436753524 2015/07/13 02:12:04 $ $NHDT-Branch: master $:$NHDT-Revision: 1.69 $ */
|
||||
/* Copyright (c) 1989 Janet Walz, Mike Threepoint */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -567,13 +567,13 @@ register struct monst *mtmp;
|
||||
isnight ? "!" : ". Why do we not rest?");
|
||||
verbl_msg = verbuf;
|
||||
} else {
|
||||
Sprintf(
|
||||
verbuf, "%s%s", nightchild ? "Child of the night, " : "",
|
||||
midnight()
|
||||
? "I can stand this craving no longer!"
|
||||
: isnight ? "I beg you, help me satisfy this growing "
|
||||
"craving!"
|
||||
: "I find myself growing a little weary.");
|
||||
Sprintf(verbuf, "%s%s",
|
||||
nightchild ? "Child of the night, " : "",
|
||||
midnight()
|
||||
? "I can stand this craving no longer!"
|
||||
: isnight
|
||||
? "I beg you, help me satisfy this growing craving!"
|
||||
: "I find myself growing a little weary.");
|
||||
verbl_msg = verbuf;
|
||||
}
|
||||
} else if (mtmp->mpeaceful) {
|
||||
@@ -810,8 +810,8 @@ register struct monst *mtmp;
|
||||
: "asks you about the One Ring.";
|
||||
break;
|
||||
case PM_ARCHEOLOGIST:
|
||||
pline_msg = "describes a recent article in \"Spelunker "
|
||||
"Today\" magazine.";
|
||||
pline_msg =
|
||||
"describes a recent article in \"Spelunker Today\" magazine.";
|
||||
break;
|
||||
case PM_TOURIST:
|
||||
verbl_msg = "Aloha.";
|
||||
|
||||
Reference in New Issue
Block a user