OSDN Git Service

自動拾いエディタの使用中にはプレイ時間のカウントが進まないようにした。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 10 Aug 2002 10:51:31 +0000 (10:51 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 10 Aug 2002 10:51:31 +0000 (10:51 +0000)
src/autopick.c

index be61fd0..16ff1e8 100644 (file)
@@ -2521,6 +2521,9 @@ void do_cmd_edit_autopick(void)
                 old_autosave_turn = turn;
         }
 
+        /* HACK -- Reset start_time to stop counting playtime while edit */
+        update_playtime();
+
        /* Free old entries */
        init_autopicker();
 
@@ -3609,4 +3612,7 @@ void do_cmd_edit_autopick(void)
 
        /* Reload autopick pref */
        process_pickpref_file(buf);
+
+        /* HACK -- reset start_time so that playtime is not increase while edit */
+        start_time = time(NULL);
 }