OSDN Git Service

帰還等でダンジョンに入った時、p_ptr->floor_idが初期化されていなかったバグ修正。
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 21 Nov 2003 17:20:00 +0000 (17:20 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 21 Nov 2003 17:20:00 +0000 (17:20 +0000)
floor.cの仕様変更時に CFM_FIRST_FLOOR フラグが色々な所で必要な事を見落していた。

src/dungeon.c
src/wizard2.c

index 0c44f60..3661781 100644 (file)
@@ -675,6 +675,12 @@ msg_format("%d 
        p_ptr->inside_quest = 0;
        energy_use = 0;
 
+       /*
+        * Clear all saved floors
+        * and create a first saved floor
+        */
+       prepare_change_floor_mode(CFM_FIRST_FLOOR);
+
        /* Leaving */
        p_ptr->leaving = TRUE;
 }
@@ -4227,6 +4233,12 @@ msg_print("
                                }
                                p_ptr->wild_mode = FALSE;
 
+                               /*
+                                * Clear all saved floors
+                                * and create a first saved floor
+                                */
+                               prepare_change_floor_mode(CFM_FIRST_FLOOR);
+
                                /* Leaving */
                                p_ptr->leaving = TRUE;
 
index 6652033..6fe6d8d 100644 (file)
@@ -1542,6 +1542,12 @@ static void do_cmd_wiz_jump(void)
        /* Prevent energy_need from being too lower than 0 */
        p_ptr->energy_need = 0;
 
+       /*
+        * Clear all saved floors
+        * and create a first saved floor
+        */
+       prepare_change_floor_mode(CFM_FIRST_FLOOR);
+
        /* Leaving */
        p_ptr->leaving = TRUE;
 }