OSDN Git Service

ランダムクエストを階段を昇って放棄し, その階で下り階段を生成すると変
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 5 Mar 2004 21:26:09 +0000 (21:26 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 5 Mar 2004 21:26:09 +0000 (21:26 +0000)
愚蛮怒が落ちる場合があるバグを修正. sf_ptr->lower_floor_idや
sf_ptr->upper_floor_idが削除された階を示してしまっていた.

src/floors.c

index 31a5e53..d5d37c2 100644 (file)
@@ -1182,6 +1182,15 @@ void change_floor(void)
                        }
                }
 
+               /* Break connection to killed floor */
+               else
+               {
+                       if (change_floor_mode & CFM_UP)
+                               sf_ptr->lower_floor_id = 0;
+                       else if (change_floor_mode & CFM_DOWN)
+                               sf_ptr->upper_floor_id = 0;
+               }
+
                /* Maintain monsters and artifacts */
                if (loaded)
                {