make rank() static again

This commit is contained in:
nhmall
2025-02-05 20:03:06 -05:00
parent c1516666b3
commit fe4cb7a626
2 changed files with 2 additions and 2 deletions

View File

@@ -259,7 +259,6 @@ extern char *do_statusline2(void);
extern void bot(void);
extern void timebot(void);
extern int xlev_to_rank(int);
extern const char *rank(void);
extern int rank_to_xlev(int);
extern const char *rank_of(int, short, boolean);
extern int title_to_mon(const char *, int *, int *);

View File

@@ -16,6 +16,7 @@ const char *const enc_stat[] = {
"Strained", "Overtaxed", "Overloaded"
};
staticfn const char *rank(void);
staticfn void bot_via_windowport(void);
staticfn void stat_update_time(void);
staticfn char *get_strength_str(void);
@@ -360,7 +361,7 @@ rank_of(int lev, short monnum, boolean female)
return "Player";
}
const char *
staticfn const char *
rank(void)
{
return rank_of(u.ulevel, Role_switch, flags.female);