OSDN Git Service

ironman_downward時にテレポート・レベルでダンジョンの最下層を越えるバグを修正.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 9 May 2003 11:06:44 +0000 (11:06 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Fri, 9 May 2003 11:06:44 +0000 (11:06 +0000)
src/spells3.c

index 900094c..6a7ef26 100644 (file)
@@ -519,7 +519,7 @@ void teleport_player_level(void)
 
        /* No effect in arena or quest */
        if (p_ptr->inside_arena || (p_ptr->inside_quest && !random_quest_number(dun_level)) ||
-           (quest_number(dun_level) && (dun_level > 1) && ironman_downward))
+           ((quest_number(dun_level) || (dun_level >= d_info[dungeon_type].maxdepth)) && (dun_level > 1) && ironman_downward))
        {
 #ifdef JP
 msg_print("¸ú²Ì¤¬¤Ê¤«¤Ã¤¿¡£");