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/sit.c
20
src/sit.c
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 sit.c $NHDT-Date: 1432512762 2015/05/25 00:12:42 $ $NHDT-Branch: master $:$NHDT-Revision: 1.49 $ */
|
||||
/* NetHack 3.6 sit.c $NHDT-Date: 1436753523 2015/07/13 02:12:03 $ $NHDT-Branch: master $:$NHDT-Revision: 1.50 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -195,8 +195,9 @@ dosit()
|
||||
} else
|
||||
makewish();
|
||||
break;
|
||||
case 7: {
|
||||
register int cnt = rnd(10);
|
||||
case 7:
|
||||
{
|
||||
int cnt = rnd(10);
|
||||
|
||||
/* Magical voice not affected by deafness */
|
||||
pline("A voice echoes:");
|
||||
@@ -205,7 +206,7 @@ dosit()
|
||||
while (cnt--)
|
||||
(void) makemon(courtmon(), u.ux, u.uy, NO_MM_FLAGS);
|
||||
break;
|
||||
}
|
||||
}
|
||||
case 8:
|
||||
/* Magical voice not affected by deafness */
|
||||
pline("A voice echoes:");
|
||||
@@ -216,8 +217,8 @@ dosit()
|
||||
case 9:
|
||||
/* Magical voice not affected by deafness */
|
||||
pline("A voice echoes:");
|
||||
verbalize("A curse upon thee for sitting upon this most holy "
|
||||
"throne!");
|
||||
verbalize(
|
||||
"A curse upon thee for sitting upon this most holy throne!");
|
||||
if (Luck > 0) {
|
||||
make_blinded(Blinded + rn1(100, 250), TRUE);
|
||||
} else
|
||||
@@ -281,9 +282,10 @@ dosit()
|
||||
struct obj *uegg;
|
||||
|
||||
if (!flags.female) {
|
||||
pline(Hallucination ? "You may think you are a platypus but a "
|
||||
"male still can't lay eggs!"
|
||||
: "Males can't lay eggs!");
|
||||
pline("%s can't lay eggs!",
|
||||
Hallucination
|
||||
? "You may think you are a platypus, but a male still"
|
||||
: "Males");
|
||||
return 0;
|
||||
} else if (u.uhunger < (int) objects[EGG].oc_nutrition) {
|
||||
You("don't have enough energy to lay an egg.");
|
||||
|
||||
Reference in New Issue
Block a user