ball&chain reformatting
This has been sitting around for a while.
This commit is contained in:
24
src/ball.c
24
src/ball.c
@@ -1,4 +1,4 @@
|
|||||||
/* NetHack 3.6 ball.c $NHDT-Date: 1570566373 2019/10/08 20:26:13 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.43 $ */
|
/* NetHack 3.6 ball.c $NHDT-Date: 1573940835 2019/11/16 21:47:15 $ $NHDT-Branch: NetHack-3.6 $:$NHDT-Revision: 1.44 $ */
|
||||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||||
/*-Copyright (c) David Cohrs, 2006. */
|
/*-Copyright (c) David Cohrs, 2006. */
|
||||||
/* NetHack may be freely redistributed. See license for details. */
|
/* NetHack may be freely redistributed. See license for details. */
|
||||||
@@ -194,8 +194,7 @@ placebc()
|
|||||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||||
char panicbuf[BUFSZ];
|
char panicbuf[BUFSZ];
|
||||||
|
|
||||||
Sprintf(panicbuf,
|
Sprintf(panicbuf, "placebc denied, restriction in effect");
|
||||||
"placebc denied, restriction in effect");
|
|
||||||
paniclog("placebc", panicbuf);
|
paniclog("placebc", panicbuf);
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
@@ -239,10 +238,9 @@ int pin;
|
|||||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||||
char panicbuf[BUFSZ];
|
char panicbuf[BUFSZ];
|
||||||
|
|
||||||
Sprintf(panicbuf,
|
Sprintf(panicbuf, "lift_covet_and_placebc denied, %s",
|
||||||
"lift_covet_and_placebc denied, %s",
|
(pin != bcrestriction) ? "pin mismatch"
|
||||||
(pin != bcrestriction) ?
|
: "restriction in effect");
|
||||||
"pin mismatch" : "restriction in effect");
|
|
||||||
paniclog("placebc", panicbuf);
|
paniclog("placebc", panicbuf);
|
||||||
#endif
|
#endif
|
||||||
return;
|
return;
|
||||||
@@ -265,8 +263,7 @@ int linenum;
|
|||||||
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
#if (NH_DEVEL_STATUS != NH_STATUS_RELEASED)
|
||||||
char panicbuf[BUFSZ];
|
char panicbuf[BUFSZ];
|
||||||
|
|
||||||
Sprintf(panicbuf,
|
Sprintf(panicbuf, "Placebc denied to %s:%d, restricted by %s:%d",
|
||||||
"Placebc denied to %s:%d, restricted by %s:%d",
|
|
||||||
funcnm, linenum,
|
funcnm, linenum,
|
||||||
bcpbreadcrumbs.funcnm, bcpbreadcrumbs.linenum);
|
bcpbreadcrumbs.funcnm, bcpbreadcrumbs.linenum);
|
||||||
paniclog("Placebc", panicbuf);
|
paniclog("Placebc", panicbuf);
|
||||||
@@ -296,10 +293,9 @@ int linenum;
|
|||||||
if (bcrestriction) {
|
if (bcrestriction) {
|
||||||
char panicbuf[BUFSZ];
|
char panicbuf[BUFSZ];
|
||||||
|
|
||||||
Sprintf(panicbuf,
|
Sprintf(panicbuf, "Unplacebc from %s:%d, when restricted to %s:%d",
|
||||||
"Unplacebc from %s:%d, when restricted to %s:%d",
|
funcnm, linenum,
|
||||||
funcnm, linenum,
|
bcubreadcrumbs.funcnm, bcubreadcrumbs.linenum);
|
||||||
bcubreadcrumbs.funcnm, bcubreadcrumbs.linenum);
|
|
||||||
paniclog("Unplacebc", panicbuf);
|
paniclog("Unplacebc", panicbuf);
|
||||||
}
|
}
|
||||||
bcpbreadcrumbs.in_effect = FALSE;
|
bcpbreadcrumbs.in_effect = FALSE;
|
||||||
@@ -343,7 +339,7 @@ int linenum;
|
|||||||
char panicbuf[BUFSZ];
|
char panicbuf[BUFSZ];
|
||||||
|
|
||||||
Sprintf(panicbuf,
|
Sprintf(panicbuf,
|
||||||
"Lift_covet_and_placebc denied to %s:%d, restricted by %s:%d",
|
"Lift_covet_and_placebc denied to %s:%d, restricted by %s:%d",
|
||||||
funcnm, linenum,
|
funcnm, linenum,
|
||||||
bcpbreadcrumbs.funcnm, bcpbreadcrumbs.linenum);
|
bcpbreadcrumbs.funcnm, bcpbreadcrumbs.linenum);
|
||||||
paniclog("Lift_covet_and_placebc", panicbuf);
|
paniclog("Lift_covet_and_placebc", panicbuf);
|
||||||
|
|||||||
Reference in New Issue
Block a user