formatting: src/a*.c - d*.c continuation lines
Mostly && and || at end of the first half of a continued line rather than at the start of the second half. The automated reformat got confused by comments in the midst of such lines. foo || bar was converted to foo || bar but foo || /* comment */ bar stayed as is. Some excluded code [#if 0] was also manually reformatted, but this is mainly stuff that can be found via regexp '[&|?:][ \t]*$' (with a lot of false hits for labels whose colon ends their line).
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* NetHack 3.6 dog.c $NHDT-Date: 1432512767 2015/05/25 00:12:47 $ $NHDT-Branch: master $:$NHDT-Revision: 1.49 $ */
|
||||
/* NetHack 3.6 dog.c $NHDT-Date: 1445301120 2015/10/20 00:32:00 $ $NHDT-Branch: master $:$NHDT-Revision: 1.51 $ */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -592,11 +592,11 @@ boolean pets_only; /* true for ascension or final escape */
|
||||
mtmp->mfrozen = 0;
|
||||
mtmp->mcanmove = 1;
|
||||
}
|
||||
if (((monnear(mtmp, u.ux, u.uy) && levl_follower(mtmp)) ||
|
||||
if (((monnear(mtmp, u.ux, u.uy) && levl_follower(mtmp))
|
||||
/* the wiz will level t-port from anywhere to chase
|
||||
the amulet; if you don't have it, will chase you
|
||||
only if in range. -3. */
|
||||
(u.uhave.amulet && mtmp->iswiz))
|
||||
|| (u.uhave.amulet && mtmp->iswiz))
|
||||
&& ((!mtmp->msleeping && mtmp->mcanmove)
|
||||
/* eg if level teleport or new trap, steed has no control
|
||||
to avoid following */
|
||||
@@ -911,9 +911,9 @@ register struct obj *obj;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
if (mtmp->mtame || !mtmp->mcanmove ||
|
||||
if (mtmp->mtame || !mtmp->mcanmove
|
||||
/* monsters with conflicting structures cannot be tamed */
|
||||
mtmp->isshk || mtmp->isgd || mtmp->ispriest || mtmp->isminion
|
||||
|| mtmp->isshk || mtmp->isgd || mtmp->ispriest || mtmp->isminion
|
||||
|| is_covetous(mtmp->data) || is_human(mtmp->data)
|
||||
|| (is_demon(mtmp->data) && !is_demon(youmonst.data))
|
||||
|| (obj && dogfood(mtmp, obj) >= MANFOOD))
|
||||
|
||||
Reference in New Issue
Block a user