couple of source formatting bits

This commit is contained in:
PatR
2020-07-01 07:49:38 -07:00
parent 2760dc3f16
commit 3a94f0a9f8
2 changed files with 10 additions and 11 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 apply.c $NHDT-Date: 1582155875 2020/02/19 23:44:35 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.318 $ */
/* NetHack 3.6 apply.c $NHDT-Date: 1593614972 2020/07/01 14:49:32 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.325 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2012. */
/* NetHack may be freely redistributed. See license for details. */
@@ -1034,9 +1034,9 @@ struct obj **optr;
struct monst *mtmp;
boolean wakem = FALSE, learno = FALSE,
ordinary = (obj->otyp != BELL_OF_OPENING || !obj->spe),
invoking =
(obj->otyp == BELL_OF_OPENING && invocation_pos(u.ux, u.uy)
&& !On_stairs(u.ux, u.uy));
invoking = (obj->otyp == BELL_OF_OPENING
&& invocation_pos(u.ux, u.uy)
&& !On_stairs(u.ux, u.uy));
You("ring %s.", the(xname(obj)));
@@ -3654,11 +3654,10 @@ doapply()
} else if (!ublindf) {
Blindf_on(obj);
} else {
You("are already %s.", ublindf->otyp == TOWEL
? "covered by a towel"
: ublindf->otyp == BLINDFOLD
? "wearing a blindfold"
: "wearing lenses");
You("are already %s.",
(ublindf->otyp == TOWEL) ? "covered by a towel"
: (ublindf->otyp == BLINDFOLD) ? "wearing a blindfold"
: "wearing lenses");
}
break;
case CREAM_PIE:

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 mhitm.c $NHDT-Date: 1593306906 2020/06/28 01:15:06 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.137 $ */
/* NetHack 3.6 mhitm.c $NHDT-Date: 1593614973 2020/07/01 14:49:33 $ $NHDT-Branch: NetHack-3.7 $:$NHDT-Revision: 1.138 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Robert Patrick Rankin, 2011. */
/* NetHack may be freely redistributed. See license for details. */
@@ -984,7 +984,7 @@ int dieroll;
/* artifact_hit updates 'tmp' but doesn't inflict any
damage; however, it might cause carried items to be
destroyed and they might do so */
if (DEADMONSTER(mdef))
if (DEADMONSTER(mdef))
return (MM_DEF_DIED
| (grow_up(magr, mdef) ? 0 : MM_AGR_DIED));
}