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:
@@ -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);
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user