more reformatting - label placement
Indent all labels one space. Having uniform placement makes spotting them much easier. (Having no indent at all would impact the change bars of 'git diff'. Those display the last unindented line--which doesn't start with punctuation--occuring before each band of changes, so usually the name of the function being changed now that we no longer have unindented K&R-style function argument declarations.) While in there, shorten or split various wide lines and replace a few tabs with spaces.
This commit is contained in:
17
src/priest.c
17
src/priest.c
@@ -73,7 +73,7 @@ move_special(struct monst *mtmp, boolean in_his_shop, schar appr,
|
||||
}
|
||||
|
||||
#define GDIST(x, y) (dist2(x, y, gx, gy))
|
||||
pick_move:
|
||||
pick_move:
|
||||
chcnt = 0;
|
||||
for (i = 0; i < cnt; i++) {
|
||||
nx = poss[i].x;
|
||||
@@ -213,14 +213,18 @@ pri_move(struct monst *priest)
|
||||
|
||||
/* exclusively for mktemple() */
|
||||
void
|
||||
priestini(d_level *lvl, struct mkroom *sroom, int sx, int sy,
|
||||
boolean sanctum) /* is it the seat of the high priest? */
|
||||
priestini(
|
||||
d_level *lvl,
|
||||
struct mkroom *sroom,
|
||||
int sx, int sy,
|
||||
boolean sanctum) /* is it the seat of the high priest? */
|
||||
{
|
||||
struct monst *priest;
|
||||
struct obj *otmp;
|
||||
int cnt;
|
||||
int px = 0, py = 0, i, si = rn2(N_DIRS);
|
||||
struct permonst *prim = &mons[sanctum ? PM_HIGH_CLERIC : PM_ALIGNED_CLERIC];
|
||||
struct permonst *prim = &mons[sanctum ? PM_HIGH_CLERIC
|
||||
: PM_ALIGNED_CLERIC];
|
||||
|
||||
for (i = 0; i < N_DIRS; i++) {
|
||||
px = sx + xdir[DIR_CLAMP(i+si)];
|
||||
@@ -707,8 +711,9 @@ reset_hostility(struct monst *roamer)
|
||||
}
|
||||
|
||||
boolean
|
||||
in_your_sanctuary(struct monst *mon, /* if non-null, <mx,my> overrides <x,y> */
|
||||
xchar x, xchar y)
|
||||
in_your_sanctuary(
|
||||
struct monst *mon, /* if non-null, <mx,my> overrides <x,y> */
|
||||
xchar x, xchar y)
|
||||
{
|
||||
register char roomno;
|
||||
register struct monst *priest;
|
||||
|
||||
Reference in New Issue
Block a user