• R/O
  • HTTP
  • SSH
  • HTTPS

hengband: コミット

変愚蛮怒のメインリポジトリです


コミットメタ情報

リビジョン4bd0126a8ef508f5fd93d24a815fa9e22262e54b (tree)
日時2017-07-23 23:43:42
作者Deskull <desull@user...>
コミッターDeskull

ログメッセージ

#37399 (2.2.0.46) ironman_downward(帰還無し)の時、地上でレベルテレポを行った場合、recall_dungeonの値を問わず鉄獄に飛ぶよう修正 / If ironman_downward is true and when player invokes level teleport, player go to Angband independently of recall_dungeon's value.

変更サマリ

差分

--- a/src/birth.c
+++ b/src/birth.c
@@ -3429,15 +3429,15 @@ static void player_wipe_without_name(void)
34293429 /* Reset virtues*/
34303430 for (i = 0; i < 8; i++) p_ptr->virtues[i]=0;
34313431
3432+ dungeon_type = 0;
3433+
34323434 /* Set the recall dungeon accordingly */
3433- if (vanilla_town)
3435+ if (vanilla_town || ironman_downward)
34343436 {
3435- dungeon_type = 0;
34363437 p_ptr->recall_dungeon = DUNGEON_ANGBAND;
34373438 }
34383439 else
34393440 {
3440- dungeon_type = 0;
34413441 p_ptr->recall_dungeon = DUNGEON_GALGALS;
34423442 }
34433443
--- a/src/defines.h
+++ b/src/defines.h
@@ -53,7 +53,7 @@
5353 #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */
5454 #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */
5555 #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */
56-#define FAKE_VER_EXTRA 45 /*!< ゲームのバージョン番号定義(エクストラ番号) */
56+#define FAKE_VER_EXTRA 46 /*!< ゲームのバージョン番号定義(エクストラ番号) */
5757
5858
5959 /*!
--- a/src/spells3.c
+++ b/src/spells3.c
@@ -712,7 +712,7 @@ void teleport_level(int m_idx)
712712 {
713713 if (!dun_level)
714714 {
715- dungeon_type = p_ptr->recall_dungeon;
715+ dungeon_type = ironman_downward ? DUNGEON_ANGBAND : p_ptr->recall_dungeon;
716716 p_ptr->oldpy = p_ptr->y;
717717 p_ptr->oldpx = p_ptr->x;
718718 }
旧リポジトリブラウザで表示