Corrections

This commit is contained in:
David Meyer 2024-03-21 13:32:52 +09:00
parent 73b8af02c3
commit 0eff9ba9f2
4 changed files with 4 additions and 4 deletions

View File

@ -843,7 +843,7 @@ add_exp(int e, boolean promotion)
} }
} }
static int int
get_exp_level(long e) get_exp_level(long e)
{ {
short i; short i;

View File

@ -493,7 +493,7 @@ int get_damage(const char *, boolean);
void get_desc(const object *, char *, size_t); void get_desc(const object *, char *, size_t);
void get_dir_rc(short, short *, short *, short); void get_dir_rc(short, short *, short *, short);
char get_dungeon_char(short, short); char get_dungeon_char(short, short);
static int get_exp_level(long); int get_exp_level(long);
void get_food(object *, boolean); void get_food(object *, boolean);
int get_hit_chance(const object *); int get_hit_chance(const object *);
int get_input_line(const char *, const char *, char *, size_t, const char *, boolean, boolean); int get_input_line(const char *, const char *, char *, size_t, const char *, boolean, boolean);

BIN
roguegg

Binary file not shown.

View File

@ -107,7 +107,7 @@ killed_by(const object *monster, short other)
mechanism = mechanism_buf; mechanism = mechanism_buf;
} }
snprintf(message_buf, sizeof(message_buf), snprintf(message_buf, sizeof(message_buf),
"%s with %ld gold and %ld experience (level%d)", "%s with %ld gold and %ld experience (level %d)",
mechanism, rogue.gold, rogue.exp_points, rogue.exp); mechanism, rogue.gold, rogue.exp_points, rogue.exp);
if ((!other) && (!no_skull)) { if ((!other) && (!no_skull)) {
@ -449,7 +449,7 @@ put_scores(const object *monster, short other)
/* Otherwise, find our slot. */ /* Otherwise, find our slot. */
for (i = expscore; i < numscores; i++) { for (i = expscore; i < numscores; i++) {
if (rogue.exp_level >= scores[i].gold) { if (rogue.exp_points >= scores[i].gold) {
rank = i; rank = i;
break; break;
} }