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:
14ddaf9
)
[Fix] #39526 update_gambling_monsters() 中のゼロ除算を回避するよう修正. / Fix division by zero in...
author
deskull
<deskull@users.sourceforge.jp>
Tue, 5 Nov 2019 16:01:23 +0000
(
01:01
+0900)
committer
deskull
<deskull@users.sourceforge.jp>
Tue, 5 Nov 2019 16:01:23 +0000
(
01:01
+0900)
src/bldg.c
patch
|
blob
|
history
diff --git
a/src/bldg.c
b/src/bldg.c
index
0427e3b
..
69fb849
100644
(file)
--- a/
src/bldg.c
+++ b/
src/bldg.c
@@
-1531,7
+1531,7
@@
void update_gambling_monsters(void)
if (r_ptr->flagsr & RFR_RES_ALL) power[i] *= 100000;
if (r_ptr->arena_ratio) power[i] = power[i] * r_ptr->arena_ratio / 100;
-
+ if (power[i] <= 0) break;
total += power[i];
}
for (i = 0; i < 4; i++)