OSDN Git Service

[Refactor] #37353 update_playtime() を core.c/h に移動.
authordeskull <deskull@users.sourceforge.jp>
Sat, 18 May 2019 10:41:45 +0000 (19:41 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sat, 18 May 2019 10:41:45 +0000 (19:41 +0900)
src/autopick.c
src/core.h
src/externs.h
src/quest.c
src/save.c
src/view-mainwindow.c

index df53959..bf22f11 100644 (file)
@@ -14,6 +14,7 @@
 #include "angband.h"
 #include "util.h"
 #include "autopick.h"
+#include "core.h"
 
 #include "mind.h"
 
index bc5c51d..b867235 100644 (file)
@@ -22,6 +22,7 @@ extern bool can_save;
 extern COMMAND_CODE now_message;
 
 extern void play_game(bool new_game);
+extern void update_playtime(void);
 extern s32b turn_real(s32b hoge);
 extern void prevent_turn_overflow(void);
-extern void close_game(void);
\ No newline at end of file
+extern void close_game(void);
index 7839bfb..9010234 100644 (file)
@@ -95,7 +95,6 @@ extern bool use_menu;
 extern void handle_stuff(void);
 extern void update_output(void);
 extern void print_monster_list(TERM_LEN x, TERM_LEN y, TERM_LEN max_lines);
-extern void update_playtime(void);
 
 #ifdef MACINTOSH
 /* main-mac.c */
index 1b46898..ffa270b 100644 (file)
@@ -1,6 +1,7 @@
 #include "angband.h"
 #include "util.h"
 
+#include "core.h"
 #include "floor.h"
 #include "floor-save.h"
 #include "floor-events.h"
index 4699916..fc3b733 100644 (file)
@@ -17,6 +17,7 @@
 #include "load.h"
 #include "report.h"
 
+#include "core.h"
 #include "artifact.h"
 #include "sort.h"
 #include "dungeon.h"
index f06096e..9004a8f 100644 (file)
@@ -2360,22 +2360,6 @@ void update_output(void)
 }
 
 /*!
- * @brief 実ゲームプレイ時間を更新する
- */
-void update_playtime(void)
-{
-       /* Check if the game has started */
-       if (start_time != 0)
-       {
-               u32b tmp = (u32b)time(NULL);
-               current_world_ptr->play_time += (tmp - start_time);
-               start_time = tmp;
-       }
-}
-
-
-
-/*!
  * @brief コンソールのリサイズに合わせてマップを再描画する /
  * Map resizing whenever the main term changes size
  * @return なし
@@ -3890,3 +3874,18 @@ void object_kind_track(KIND_OBJECT_IDX k_idx)
        p_ptr->window |= (PW_OBJECT);
 }
 
+
+/*!
+ * @brief 実ゲームプレイ時間を更新する
+ */
+void update_playtime(void)
+{
+       /* Check if the game has started */
+       if (start_time != 0)
+       {
+               u32b tmp = (u32b)time(NULL);
+               current_world_ptr->play_time += (tmp - start_time);
+               start_time = tmp;
+       }
+}
+