OSDN Git Service

[Refactor] #38844 start_time を world_type 構造体へ移動.
[hengband/hengband.git] / src / view-mainwindow.c
index 9004a8f..b66b8d6 100644 (file)
@@ -3881,11 +3881,11 @@ void object_kind_track(KIND_OBJECT_IDX k_idx)
 void update_playtime(void)
 {
        /* Check if the game has started */
-       if (start_time != 0)
+       if (current_world_ptr->start_time != 0)
        {
                u32b tmp = (u32b)time(NULL);
-               current_world_ptr->play_time += (tmp - start_time);
-               start_time = tmp;
+               current_world_ptr->play_time += (tmp - current_world_ptr->start_time);
+               current_world_ptr->start_time = tmp;
        }
 }