OSDN Git Service

bug fix -- save the time correctly when the tower-quest fails
authordis- <dis-@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 16 May 2013 11:58:04 +0000 (11:58 +0000)
committerdis- <dis-@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 16 May 2013 11:58:04 +0000 (11:58 +0000)
src/dungeon.c

index 684531f..b34acf3 100644 (file)
@@ -1234,6 +1234,8 @@ void leave_tower_check(void)
                {
                        quest[QUEST_TOWER1].status = QUEST_STATUS_FAILED;
                        quest[QUEST_TOWER1].complev = (byte)p_ptr->lev;
+                       update_playtime();
+                       quest[QUEST_TOWER1].comptime = playtime;
                }
        }
 }