OSDN Git Service

It's not currently used in hengband, but bring over the change to mouse event handlin...
[hengbandforosx/hengbandosx.git] / src / report.c
index 733e9ba..ad5d1da 100644 (file)
@@ -297,8 +297,6 @@ static errr make_dump(BUF* dumpbuf)
                (void)buf_sprintf(dumpbuf, "%s", buf);
        }
        my_fclose(fff);
-
-       /* Remove the file */
        fd_kill(file_name);
 
        /* Success */
@@ -469,11 +467,11 @@ errr report_score(void)
 #endif
        buf_sprintf(score, "score: %d\n", total_points());
        buf_sprintf(score, "level: %d\n", p_ptr->lev);
-       buf_sprintf(score, "depth: %d\n", dun_level);
+       buf_sprintf(score, "depth: %d\n", current_floor_ptr->dun_level);
        buf_sprintf(score, "maxlv: %d\n", p_ptr->max_plv);
        buf_sprintf(score, "maxdp: %d\n", max_dlv[DUNGEON_ANGBAND]);
        buf_sprintf(score, "au: %d\n", p_ptr->au);
-       buf_sprintf(score, "turns: %d\n", turn_real(turn));
+       buf_sprintf(score, "turns: %d\n", turn_real(current_world_ptr->game_turn));
        buf_sprintf(score, "sex: %d\n", p_ptr->psex);
        buf_sprintf(score, "race: %s\n", rp_ptr->title);
        buf_sprintf(score, "class: %s\n", cp_ptr->title);