From: Deskull Date: Sun, 23 Jul 2017 15:23:24 +0000 (+0900) Subject: #37399 (2.2.0.47) 旧バージョンのバグにより、帰還無しオプションで鉄獄以外のダンジョンに入り込んでいる場合、強制的に地上に飛ばす処理を実装。 /... X-Git-Tag: v2.2.1~57 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=99b8af2463b5a700099feefa998ce456fa5d7072 #37399 (2.2.0.47) 旧バージョンのバグにより、帰還無しオプションで鉄獄以外のダンジョンに入り込んでいる場合、強制的に地上に飛ばす処理を実装。 / Implement forced jump when player is in illegal dungeon on ironman_downward mode for bugs of old version. --- diff --git a/src/defines.h b/src/defines.h index 6f4eaa23c..e62255e69 100644 --- a/src/defines.h +++ b/src/defines.h @@ -53,7 +53,7 @@ #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */ #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */ #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */ -#define FAKE_VER_EXTRA 46 /*!< ゲームのバージョン番号定義(エクストラ番号) */ +#define FAKE_VER_EXTRA 47 /*!< ゲームのバージョン番号定義(エクストラ番号) */ /*! diff --git a/src/dungeon.c b/src/dungeon.c index adb304002..a69684bf7 100644 --- a/src/dungeon.c +++ b/src/dungeon.c @@ -3457,6 +3457,17 @@ static void process_world(void) /* Update dungeon feeling, and announce it if changed */ update_dungeon_feeling(); + /* 帰還無しモード時のレベルテレポバグ対策 / Fix for level teleport bugs on ironman_downward.*/ + if (ironman_downward && (dungeon_type != DUNGEON_ANGBAND && dungeon_type != 0)) + { + dun_level = 0; + dungeon_type = 0; + prepare_change_floor_mode(CFM_FIRST_FLOOR | CFM_RAND_PLACE); + p_ptr->inside_arena = FALSE; + p_ptr->wild_mode = FALSE; + p_ptr->leaving = TRUE; + } + /*** Check monster arena ***/ if (p_ptr->inside_battle && !p_ptr->leaving) {