src formatting

Remove a couple of tabs, and for the affected files, put 'goto' labels
in column 2 where they're easier to spot.
This commit is contained in:
PatR
2019-01-04 18:47:00 -08:00
parent 9bcc42957b
commit c0cce3110e
3 changed files with 20 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
/* NetHack 3.6 hack.c $NHDT-Date: 1545530973 2018/12/23 02:09:33 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.202 $ */
/* NetHack 3.6 hack.c $NHDT-Date: 1546656413 2019/01/05 02:46:53 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.203 $ */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/*-Copyright (c) Derek S. Ray, 2015. */
/* NetHack may be freely redistributed. See license for details. */
@@ -279,7 +279,7 @@ moverock()
/* note: reset to zero after save/restore cycle */
static NEARDATA long lastmovetime;
#endif
dopush:
dopush:
if (!u.usteed) {
if (moves > lastmovetime + 2 || moves < lastmovetime)
pline("With %s effort you move %s.",
@@ -304,7 +304,7 @@ moverock()
newsym(sx, sy);
}
} else {
nopushmsg:
nopushmsg:
if (u.usteed)
pline("%s tries to move %s, but cannot.",
upstart(y_monnam(u.usteed)), the(xname(otmp)));
@@ -312,7 +312,7 @@ moverock()
You("try to move %s, but in vain.", the(xname(otmp)));
if (Blind)
feel_location(sx, sy);
cannot_push:
cannot_push:
if (throws_rocks(youmonst.data)) {
boolean
canpickup = (!Sokoban
@@ -797,7 +797,7 @@ int mode;
return FALSE;
}
} else {
testdiag:
testdiag:
if (dx && dy && !Passes_walls
&& (!doorless_door(x, y) || block_door(x, y))) {
/* Diagonal moves into a door are not allowed. */
@@ -955,8 +955,8 @@ int mode;
uy = u.uy;
}
noguess:
(void) memset((genericptr_t) travel, 0, sizeof(travel));
noguess:
(void) memset((genericptr_t) travel, 0, sizeof travel);
travelstepx[0][0] = tx;
travelstepy[0][0] = ty;
@@ -1141,7 +1141,7 @@ int mode;
return FALSE;
}
found:
found:
u.dx = 0;
u.dy = 0;
nomul(0);
@@ -1294,7 +1294,7 @@ struct trap *desttrap; /* nonnull if another trap at <x,y> */
Norep("You are %s %s.", predicament, culprit);
}
} else {
wriggle_free:
wriggle_free:
if (u.usteed)
pline("%s finally %s free.", upstart(steedname),
!anchored ? "lurches" : "wrenches the ball");
@@ -1493,7 +1493,7 @@ domove()
case 0:
case 1:
case 2:
pull_free:
pull_free:
You("pull free from %s.", mon_nam(u.ustuck));
u.ustuck = 0;
break;
@@ -2203,7 +2203,7 @@ boolean pick;
}
mnexto(mtmp); /* have to move the monster */
}
spotdone:
spotdone:
if (!--inspoteffects) {
spotterrain = STONE; /* 0 */
spotloc.x = spotloc.y = 0;
@@ -2581,7 +2581,8 @@ dopickup(VOID_ARGS)
int count, tmpcount, ret;
/* awful kludge to work around parse()'s pre-decrement */
count = (multi || (save_cm && *save_cm == cmd_from_func(dopickup))) ? multi + 1 : 0;
count = (multi || (save_cm && *save_cm == cmd_from_func(dopickup)))
? multi + 1 : 0;
multi = 0; /* always reset */
if ((ret = pickup_checks() >= 0))
@@ -2654,7 +2655,7 @@ lookaround()
}
goto bcorr;
} else if (levl[x][y].typ == CORR) {
bcorr:
bcorr:
if (levl[u.ux][u.uy].typ != ROOM) {
if (context.run == 1 || context.run == 3
|| context.run == 8) {
@@ -2712,7 +2713,7 @@ lookaround()
|| ((y == u.uy - u.dy) && (x != u.ux + u.dx)))
continue;
}
stop:
stop:
nomul(0);
return;
} /* end for loops */