some reformatting
Replace some (foo && bar) that had crept back into the code with (foo && bar) to match the reformatting which took place before 3.6.0. There are a couple of lines ending in '||' still present but they look intentional. isaac64.c has some trailing '|' bit operators that could/should be moved to the start of the next line but I didn't touch that file. While in the affected files, I tried to shorten most overly wide lines (the right margin is supposed to at column 78 and there are quite a few lines which are 79 characters long, but I left most of those rather than introduce new line splits). Also replace a handful of tabs with spaces. I was a little surprised not find any trailing spaces (in the dozen or so files being updated). I didn't look for trailing arithmetic or '?'/':' operators which aught to be moved to the start of the next line.
This commit is contained in:
10
src/trap.c
10
src/trap.c
@@ -1265,8 +1265,8 @@ trapeffect_slp_gas_trap(
|
||||
} else {
|
||||
boolean in_sight = canseemon(mtmp) || (mtmp == u.usteed);
|
||||
|
||||
if (!resists_sleep(mtmp) && !breathless(mtmp->data) && !mtmp->msleeping
|
||||
&& mtmp->mcanmove) {
|
||||
if (!resists_sleep(mtmp) && !breathless(mtmp->data)
|
||||
&& !mtmp->msleeping && mtmp->mcanmove) {
|
||||
if (sleep_monst(mtmp, rnd(25), -1) && in_sight) {
|
||||
pline("%s suddenly falls asleep!", Monnam(mtmp));
|
||||
seetrap(trap);
|
||||
@@ -1698,7 +1698,7 @@ trapeffect_hole(
|
||||
seetrap(trap);
|
||||
if (tt == TRAPDOOR)
|
||||
pline(
|
||||
"A trap door opens, but %s doesn't fall through.",
|
||||
"A trap door opens, but %s doesn't fall through.",
|
||||
mon_nam(mtmp));
|
||||
else /* (tt == HOLE) */
|
||||
pline("%s doesn't fall through the hole.",
|
||||
@@ -4637,8 +4637,8 @@ unsqueak_ok(struct obj* obj)
|
||||
if (obj->otyp == CAN_OF_GREASE)
|
||||
return GETOBJ_SUGGEST;
|
||||
|
||||
if (obj->otyp == POT_OIL && obj->dknown &&
|
||||
objects[POT_OIL].oc_name_known)
|
||||
if (obj->otyp == POT_OIL && obj->dknown
|
||||
&& objects[POT_OIL].oc_name_known)
|
||||
return GETOBJ_SUGGEST;
|
||||
|
||||
/* downplay all other potions, including unidentified oil
|
||||
|
||||
Reference in New Issue
Block a user