diff --git a/level.c b/level.c index 3678379..e19531f 100644 --- a/level.c +++ b/level.c @@ -843,7 +843,7 @@ add_exp(int e, boolean promotion) } } -static int +int get_exp_level(long e) { short i; diff --git a/rogue.h b/rogue.h index 927b39e..814f829 100644 --- a/rogue.h +++ b/rogue.h @@ -493,7 +493,7 @@ int get_damage(const char *, boolean); void get_desc(const object *, char *, size_t); void get_dir_rc(short, short *, short *, short); char get_dungeon_char(short, short); -static int get_exp_level(long); +int get_exp_level(long); void get_food(object *, boolean); int get_hit_chance(const object *); int get_input_line(const char *, const char *, char *, size_t, const char *, boolean, boolean); diff --git a/roguegg b/roguegg index 37e7267..e305c3e 100755 Binary files a/roguegg and b/roguegg differ diff --git a/score.c b/score.c index a92bf65..b7477ef 100644 --- a/score.c +++ b/score.c @@ -107,7 +107,7 @@ killed_by(const object *monster, short other) mechanism = mechanism_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); if ((!other) && (!no_skull)) { @@ -449,7 +449,7 @@ put_scores(const object *monster, short other) /* Otherwise, find our slot. */ for (i = expscore; i < numscores; i++) { - if (rogue.exp_level >= scores[i].gold) { + if (rogue.exp_points >= scores[i].gold) { rank = i; break; }