From 8aadfd794cdaf74da767025f626ac5edd6ae86c2 Mon Sep 17 00:00:00 2001 From: nhmall Date: Wed, 24 Jan 2024 18:51:12 -0500 Subject: [PATCH] comment updates The comments referred to the function pointer variable before those changed names, so this assumes that they still should. --- src/mon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mon.c b/src/mon.c index 4cfa75cfb..3a66cc41d 100644 --- a/src/mon.c +++ b/src/mon.c @@ -4138,7 +4138,7 @@ iter_mons_safe(boolean (*bfunc)(struct monst *)) } -/* iterate all living monsters on current level, calling func for each. */ +/* iterate all living monsters on current level, calling vfunc for each. */ void iter_mons(void (*vfunc)(struct monst *)) { @@ -4154,8 +4154,8 @@ iter_mons(void (*vfunc)(struct monst *)) } -/* iterate all living monsters on current level, calling func for each. - if func returns TRUE, stop and return that monster. */ +/* iterate all living monsters on current level, calling bfunc for each. + if bfunc returns TRUE, stop and return that monster. */ struct monst * get_iter_mons(boolean (*bfunc)(struct monst *)) { @@ -4171,9 +4171,9 @@ get_iter_mons(boolean (*bfunc)(struct monst *)) return mtmp; } -/* iterate all living monsters on current level, calling func for each, +/* iterate all living monsters on current level, calling bfunc for each, passing x,y to the function. - if func returns TRUE, stop and return that monster. */ + if bfunc returns TRUE, stop and return that monster. */ struct monst * get_iter_mons_xy( boolean (*bfunc)(struct monst *, coordxy, coordxy),