OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c45888
)
[Fix] #38997 destroy_level() 内変数参照修正. / Fix variable references in destroy_level().
author
deskull
<deskull@users.sourceforge.jp>
Wed, 1 Jan 2020 13:10:32 +0000
(22:10 +0900)
committer
deskull
<deskull@users.sourceforge.jp>
Wed, 1 Jan 2020 13:10:32 +0000
(22:10 +0900)
src/floor-streams.c
patch
|
blob
|
history
diff --git
a/src/floor-streams.c
b/src/floor-streams.c
index
053346b
..
66b7629
100644
(file)
--- a/
src/floor-streams.c
+++ b/
src/floor-streams.c
@@
-457,9
+457,9
@@
void destroy_level(floor_type *floor_ptr)
for (n = 0; n < randint1(5); n++)
{
/* Pick an epi-center */
- x1 = rand_range(5,
p_ptr->current_
floor_ptr->width - 1 - 5);
- y1 = rand_range(5,
p_ptr->current_
floor_ptr->height - 1 - 5);
+ x1 = rand_range(5, floor_ptr->width - 1 - 5);
+ y1 = rand_range(5, floor_ptr->height - 1 - 5);
- (void)destroy_area(
p_ptr->current_
floor_ptr, y1, x1, 15, TRUE);
+ (void)destroy_area(floor_ptr, y1, x1, 15, TRUE);
}
}