Skip to content

Commit

Permalink
Don't use boolean for losehp killer format type
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
entrez authored and PatR committed Oct 8, 2022
1 parent 4b32f8b commit c0dfa40
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/extern.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/hack.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c0dfa40

Please sign in to comment.