Don't use boolean for losehp killer format type

Killer format isn't a boolean, since it has 3 possible values
(KILLED_BY_AN, KILLED_BY, NO_KILLER_PREFIX).  It shouldn't make any
difference behind the scenes, but it's confusing to use 'boolean' for
it.
This commit is contained in:
Michael Meyer
2022-10-04 17:26:23 -04:00
committed by PatR
parent 4b32f8b3bd
commit c0dfa40cd3
2 changed files with 2 additions and 2 deletions

View File

@@ -977,7 +977,7 @@ extern int monster_nearby(void);
extern void end_running(boolean);
extern void nomul(int);
extern void unmul(const char *);
extern void losehp(int, const char *, boolean);
extern void losehp(int, const char *, schar);
extern int weight_cap(void);
extern int inv_weight(void);
extern int near_capacity(void);

View File

@@ -3645,7 +3645,7 @@ maybe_wail(void)
}
void
losehp(int n, const char *knam, boolean k_format)
losehp(int n, const char *knam, schar k_format)
{
#if 0 /* code below is prepared to handle negative 'loss' so don't add this
* until we've verified that no callers intentionally rely on that */