OSDN Git Service

[Fix] drawing sniper rushing arrow's moving points #251
authoriks <iks3@users.noreply.github.com>
Mon, 22 Feb 2021 11:22:54 +0000 (20:22 +0900)
committeriks <iks3@users.noreply.github.com>
Mon, 22 Feb 2021 11:22:54 +0000 (20:22 +0900)
Fix drawing oddly moving points of monster which is rushed by rushing arrow with many @s because update_monster() reference wrong monster's index.

src/combat/shoot.c

index 9af354a..d63bbfa 100644 (file)
@@ -777,7 +777,7 @@ void exe_fire(player_type *shooter_ptr, INVENTORY_IDX item, object_type *j_ptr,
                                 m_ptr->fx = nx;
                                 m_ptr->fy = ny;
 
-                                update_monster(shooter_ptr, c_mon_ptr->m_idx, TRUE);
+                                update_monster(shooter_ptr, m_idx, TRUE);
 
                                 if (msec > 0) {
                                     lite_spot(shooter_ptr, ny, nx);