OSDN Git Service

[Refactor] #38997 calc_score() に player_type * 引数を追加.
[hengband/hengband.git] / src / report.c
index b9f99c9..c0213b5 100644 (file)
@@ -7,7 +7,21 @@
 
 #define _GNU_SOURCE /*!< 未使用*/
 #include "angband.h"
+#include "util.h"
+#include "core.h"
+#include "inet.h"
+#include "dungeon.h"
+
 #include "floor.h"
+#include "player-status.h"
+#include "player-class.h"
+#include "player-race.h"
+#include "player-personality.h"
+#include "files.h"
+#include "world.h"
+#include "realm.h"
+#include "term.h"
+#include "view-mainwindow.h"
 
 #ifdef WORLD_SCORE
 
@@ -32,6 +46,8 @@
 #include <signal.h>
 #endif
 
+concptr screen_dump = NULL;
+
 /*
  * internet resource value
  */
@@ -466,7 +482,7 @@ errr report_score(void)
        buf_sprintf(score, "version: Hengband %d.%d.%d\n",
                    FAKE_VER_MAJOR-10, FAKE_VER_MINOR, FAKE_VER_PATCH);
 #endif
-       buf_sprintf(score, "score: %d\n", total_points());
+       buf_sprintf(score, "score: %d\n", calc_score(p_ptr));
        buf_sprintf(score, "level: %d\n", p_ptr->lev);
        buf_sprintf(score, "depth: %d\n", current_floor_ptr->dun_level);
        buf_sprintf(score, "maxlv: %d\n", p_ptr->max_plv);