OSDN Git Service

[Refactor] #39962 files.c からuid-checker.c/h を分離 / Separated uid-checker.c/h from...
[hengband/hengband.git] / src / scores.c
index c22603a..c532a2a 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include "angband.h"
+#include "signal-handlers.h"
 #include "term.h"
 #include "util.h"
 #include "core.h"
@@ -21,6 +22,7 @@
 #include "player-class.h"
 #include "player-personality.h"
 #include "player-sex.h"
+#include "uid-checker.h"
 #include "files.h"
 #include "scores.h"
 #include "floor.h"
@@ -490,15 +492,9 @@ errr top_twenty(player_type *current_player_ptr)
        the_score.turns[9] = '\0';
 
        time_t ct = time((time_t*)0);
-#ifdef HIGHSCORE_DATE_HACK
-       /* Save the date in a hacked up form (9 chars) */
-       (void)sprintf(the_score.day, "%-.6s %-.2s", ctime(&ct) + 4, ctime(&ct) + 22);
-#else
-       /* Save the date in standard form (8 chars) */
-/*     (void)strftime(the_score.day, 9, "%m/%d/%y", localtime(&ct)); */
+
        /* Save the date in standard encoded form (9 chars) */
        strftime(the_score.day, 10, "@%Y%m%d", localtime(&ct));
-#endif
 
        /* Save the player name (15 chars) */
        sprintf(the_score.who, "%-.15s", current_player_ptr->name);