OSDN Git Service

cast_meteor() を, 壁の中には隕石を召喚しないように修正.
authorhenkma <henkma@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 16 Jul 2005 12:02:34 +0000 (12:02 +0000)
committerhenkma <henkma@0568b783-4c39-0410-ac80-bf13821ea2a2>
Sat, 16 Jul 2005 12:02:34 +0000 (12:02 +0000)
src/do-spell.c

index e1af8ba..f3f4f6d 100644 (file)
@@ -931,7 +931,8 @@ static void cast_meteor(int dam, int rad)
 
                        if (d >= 9) continue;
 
 
                        if (d >= 9) continue;
 
-                       if (!in_bounds(y, x) || !projectable(py, px, y, x)) continue;
+                       if (!in_bounds(y, x) || !projectable(py, px, y, x)
+                           || !cave_have_flag_bold(y, x, FF_PROJECT)) continue;
 
                        /* Valid position */
                        break;
 
                        /* Valid position */
                        break;