From 5dc8e98efac05a7801949cca24775be28a83104e Mon Sep 17 00:00:00 2001 From: PatR Date: Wed, 24 May 2023 11:23:15 -0700 Subject: [PATCH] a couple of miscellaneous formatting bits --- src/mon.c | 5 +++-- src/monmove.c | 3 ++- src/teleport.c | 6 +++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mon.c b/src/mon.c index d0e6dc991..abbe66d4f 100644 --- a/src/mon.c +++ b/src/mon.c @@ -897,7 +897,8 @@ minliquid_core(struct monst* mtmp) int mcalcmove( 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_adj; @@ -1096,7 +1097,7 @@ movemon(void) iter_mons_safe(movemon_singlemon); 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 */ if (gc.context.bypasses) clear_bypasses(); diff --git a/src/monmove.c b/src/monmove.c index b905ad808..547260bdd 100644 --- a/src/monmove.c +++ b/src/monmove.c @@ -16,7 +16,8 @@ static void mind_blast(struct monst *); static boolean holds_up_web(coordxy, coordxy); static int count_webbing_walls(coordxy, coordxy); 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 void leppie_stash(struct monst *); static boolean m_balks_at_approaching(struct monst *); diff --git a/src/teleport.c b/src/teleport.c index cdd00b0af..2c60752bd 100644 --- a/src/teleport.c +++ b/src/teleport.c @@ -203,9 +203,9 @@ enexto_core( int i, nearcandyct, allcandyct; struct monst fakemon; /* dummy monster */ 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 - want to keep it in case the debugpline() below prints 'entflags' */ + want to keep it in case the debugpline4() gets called */ if (!mdat) { debugpline0("enexto() called with null mdat"); @@ -682,7 +682,7 @@ collect_coords( } } } /* 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; }