a couple of miscellaneous formatting bits

This commit is contained in:
PatR
2023-05-24 11:23:15 -07:00
parent 42356daec0
commit 5dc8e98efa
3 changed files with 8 additions and 6 deletions
+3 -2
View File
@@ -897,7 +897,8 @@ minliquid_core(struct monst* mtmp)
int int
mcalcmove( mcalcmove(
struct monst *mon, struct monst *mon,
boolean m_moving) /* True: adjust for moving; False: just adjust for speed */ boolean m_moving) /* True: adjust for moving;
* False: just adjust for speed */
{ {
int mmove = mon->data->mmove; int mmove = mon->data->mmove;
int mmove_adj; int mmove_adj;
@@ -1096,7 +1097,7 @@ movemon(void)
iter_mons_safe(movemon_singlemon); iter_mons_safe(movemon_singlemon);
if (any_light_source()) if (any_light_source())
gv.vision_full_recalc = 1; /* in case a mon moved with a light source */ gv.vision_full_recalc = 1; /* in case a mon moved w/ a light source */
/* reset obj bypasses after last monster has moved */ /* reset obj bypasses after last monster has moved */
if (gc.context.bypasses) if (gc.context.bypasses)
clear_bypasses(); clear_bypasses();
+2 -1
View File
@@ -16,7 +16,8 @@ static void mind_blast(struct monst *);
static boolean holds_up_web(coordxy, coordxy); static boolean holds_up_web(coordxy, coordxy);
static int count_webbing_walls(coordxy, coordxy); static int count_webbing_walls(coordxy, coordxy);
static boolean soko_allow_web(struct monst *); static boolean soko_allow_web(struct monst *);
static boolean m_search_items(struct monst *, coordxy *, coordxy *, schar *, int *); static boolean m_search_items(struct monst *, coordxy *, coordxy *, schar *,
int *);
static boolean leppie_avoidance(struct monst *); static boolean leppie_avoidance(struct monst *);
static void leppie_stash(struct monst *); static void leppie_stash(struct monst *);
static boolean m_balks_at_approaching(struct monst *); static boolean m_balks_at_approaching(struct monst *);
+3 -3
View File
@@ -203,9 +203,9 @@ enexto_core(
int i, nearcandyct, allcandyct; int i, nearcandyct, allcandyct;
struct monst fakemon; /* dummy monster */ struct monst fakemon; /* dummy monster */
boolean allow_xx_yy = (boolean) ((entflags & GP_ALLOW_XY) != 0); boolean allow_xx_yy = (boolean) ((entflags & GP_ALLOW_XY) != 0);
/* note: GP_ALLOW_XY isn't used by goodpos(); old enext_core() used no /* note: GP_ALLOW_XY isn't used by goodpos(); old enext_core() used to
mask it off to hide it from goodpos but that isn't required and we mask it off to hide it from goodpos but that isn't required and we
want to keep it in case the debugpline() below prints 'entflags' */ want to keep it in case the debugpline4() gets called */
if (!mdat) { if (!mdat) {
debugpline0("enexto() called with null mdat"); debugpline0("enexto() called with null mdat");
@@ -682,7 +682,7 @@ collect_coords(
} }
} }
} /* radius loop */ } /* radius loop */
debugpline4("collect_coords(,%d,%d,%d,,,)=%d", cx, cy, maxradius, result); debugpline4("collect_coords(,%d,%d,%d,,)=%d", cx, cy, maxradius, result);
return result; return result;
} }