OSDN Git Service

重量オーバーで深い水に溺れている忍者でも速駆けが維持されるのはおかし
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 24 Dec 2003 06:18:49 +0000 (06:18 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Wed, 24 Dec 2003 06:18:49 +0000 (06:18 +0000)
い等の理由により, 深い流れの地形では浮遊がない限り速駆けが切れるよう
に変更.

src/cmd1.c

index a7c9c52..647f766 100644 (file)
@@ -3521,12 +3521,14 @@ bool move_player_effect(int ny, int nx, u32b mpe_mode)
                        else if (p_ptr->cur_lite <= 0) set_superstealth(TRUE);
                }
 
-               if ((p_ptr->action == ACTION_HAYAGAKE) && !have_flag(f_ptr->flags, FF_PROJECT))
+               if ((p_ptr->action == ACTION_HAYAGAKE) &&
+                   (!have_flag(f_ptr->flags, FF_PROJECT) ||
+                    (!p_ptr->levitation && have_flag(f_ptr->flags, FF_DEEP))))
                {
 #ifdef JP
                        msg_print("¤³¤³¤Ç¤ÏÁÇÁ᤯ư¤±¤Ê¤¤¡£");
 #else
-                       msg_print("You cannot run in wall.");
+                       msg_print("You cannot run in here.");
 #endif
                        set_action(ACTION_NONE);
                }