OSDN Git Service

クエストから帰還で脱出するとp_ptr->recall_dungeon = 0となり, その状態
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 8 Jul 2004 23:58:28 +0000 (23:58 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 8 Jul 2004 23:58:28 +0000 (23:58 +0000)
でクエスト内で帰還を使っておいて地上に出てから帰還発動を待つと,
"荒野" という最大 1 階のダンジョンに飛んでしまうバグを修正.

src/dungeon.c

index be81a0d..39d8490 100644 (file)
@@ -3275,7 +3275,7 @@ msg_print("
                                msg_print("You feel yourself yanked upwards!");
 #endif
 
-                               p_ptr->recall_dungeon = dungeon_type;
+                               if (dungeon_type) p_ptr->recall_dungeon = dungeon_type;
                                if (record_stair)
                                        do_cmd_write_nikki(NIKKI_RECALL, dun_level, NULL);
 
@@ -7078,7 +7078,7 @@ prt("
                                        p_ptr->inside_battle = FALSE;
                                        leaving_quest = 0;
                                        p_ptr->inside_quest = 0;
-                                       p_ptr->recall_dungeon = dungeon_type;
+                                       if (dungeon_type) p_ptr->recall_dungeon = dungeon_type;
                                        dungeon_type = 0;
                                        if (lite_town || vanilla_town)
                                        {