OSDN Git Service
(root)
/
hengband
/
hengband.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Refactor] #38997 los(), projectable() に player_type * 引数を追加. / Add player_type ...
[hengband/hengband.git]
/
src
/
object2.c
diff --git
a/src/object2.c
b/src/object2.c
index
798b0fd
..
c45b737
100644
(file)
--- a/
src/object2.c
+++ b/
src/object2.c
@@
-4642,7
+4642,7
@@
OBJECT_IDX drop_near(object_type *j_ptr, PERCENTAGE chance, POSITION y, POSITION
if (!in_bounds(p_ptr->current_floor_ptr, ty, tx)) continue;
/* Require line of projection */
if (!in_bounds(p_ptr->current_floor_ptr, ty, tx)) continue;
/* Require line of projection */
- if (!projectable(y, x, ty, tx)) continue;
+ if (!projectable(
p_ptr->current_floor_ptr,
y, x, ty, tx)) continue;
/* Obtain grid */
g_ptr = &p_ptr->current_floor_ptr->grid_array[ty][tx];
/* Obtain grid */
g_ptr = &p_ptr->current_floor_ptr->grid_array[ty][tx];