OSDN Git Service

^A z 、ネ ^A Z 、ヌセ霽マ、ヲ、キ、ハ、、、隍ヲ、ヒ、キ、ソ。」
authormogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 24 Nov 2003 11:50:07 +0000 (11:50 +0000)
committermogami <mogami@0568b783-4c39-0410-ac80-bf13821ea2a2>
Mon, 24 Nov 2003 11:50:07 +0000 (11:50 +0000)
src/wizard2.c

index d21e327..899724b 100644 (file)
@@ -1637,14 +1637,12 @@ static void do_cmd_wiz_zap(void)
                /* Paranoia -- Skip dead monsters */
                if (!m_ptr->r_idx) continue;
 
+               /* Skip the mount */
+               if (i == p_ptr->riding) continue;
+
                /* Delete nearby monsters */
                if (m_ptr->cdis <= MAX_SIGHT)
                {
-                       if (i == p_ptr->riding)
-                       {
-                               rakuba(-1, FALSE);
-                               p_ptr->redraw |= (PR_EXTRA);
-                       }
                        delete_monster_idx(i);
                }
        }
@@ -1666,11 +1664,8 @@ static void do_cmd_wiz_zap_all(void)
                /* Paranoia -- Skip dead monsters */
                if (!m_ptr->r_idx) continue;
 
-               if (i == p_ptr->riding)
-               {
-                       rakuba(-1, FALSE);
-                       p_ptr->redraw |= (PR_EXTRA);
-               }
+               /* Skip the mount */
+               if (i == p_ptr->riding) continue;
 
                /* Delete this monster */
                delete_monster_idx(i);