OSDN Git Service

1.109、ホス、タオ、ヌ, ハムソセ、ホ・゚・ケ、ヌクサ・ユ・鬣ーホゥ、ニ、ヒ・ィ・ミ・ー、キ、ソ、ホ、ヌス、タオ.
authornothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 3 Jul 2003 16:44:42 +0000 (16:44 +0000)
committernothere <nothere@0568b783-4c39-0410-ac80-bf13821ea2a2>
Thu, 3 Jul 2003 16:44:42 +0000 (16:44 +0000)
src/cave.c

index 2a9f13f..55ad5dd 100644 (file)
@@ -3222,7 +3222,7 @@ static void mon_lite_hack(int y, int x)
                                if (!cave_floor_bold(y, x - 1)) return;
                        }
                }
-               else if (((x < px) && (x > mon_fx)) || ((x > py) && (y < mon_fx)))
+               else if (((x < px) && (x > mon_fx)) || ((x > px) && (x < mon_fx)))
                {
                        midpoint = (py + mon_fy) >> 1;
                        if (y < midpoint)
@@ -3293,7 +3293,7 @@ static void mon_dark_hack(int y, int x)
                                if (!cave_floor_bold(y, x - 1)) return;
                        }
                }
-               else if (((x < px) && (x > mon_fx)) || ((x > py) && (y < mon_fx)))
+               else if (((x < px) && (x > mon_fx)) || ((x > px) && (x < mon_fx)))
                {
                        midpoint = (py + mon_fy) >> 1;
                        if (y < midpoint)