OSDN Git Service

[Fix] ブレスが壁を貫通するバグを修正
authorSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Fri, 15 Apr 2022 14:57:52 +0000 (23:57 +0900)
committerSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Fri, 15 Apr 2022 15:01:42 +0000 (00:01 +0900)
src/effect/effect-processor.cpp

index 770b013..3fce097 100644 (file)
@@ -222,7 +222,7 @@ ProjectResult project(PlayerType *player_ptr, const MONSTER_IDX who, POSITION ra
          */
         if (breath) {
             flag &= ~(PROJECT_HIDE);
-            breath_shape(player_ptr, path_g, path_g.path_num(), &grids, gx, gy, gm, &gm_rad, rad, y1, x1, by, bx, typ);
+            breath_shape(player_ptr, path_g, path_n, &grids, gx, gy, gm, &gm_rad, rad, y1, x1, by, bx, typ);
         } else {
             for (auto dist = 0; dist <= rad; dist++) {
                 for (auto y = by - dist; y <= by + dist; y++) {