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:
4f2f706
)
Adopted correction for division by zero exception in battle_monsters() from upstream...
author
Eric Branlund
<ebranlund@fastmail.com>
Thu, 7 Nov 2019 05:11:40 +0000
(21:11 -0800)
committer
Eric Branlund
<ebranlund@fastmail.com>
Thu, 7 Nov 2019 05:11:40 +0000
(21:11 -0800)
src/bldg.c
patch
|
blob
|
history
diff --git
a/src/bldg.c
b/src/bldg.c
index
7173f57
..
2185bfc
100644
(file)
--- a/
src/bldg.c
+++ b/
src/bldg.c
@@
-1448,6
+1448,7
@@
void battle_monsters(void)
}
for (i=0;i<4;i++)
{
+ if (power[i] <= 0) break;
power[i] = total*60/power[i];
if (tekitou && ((power[i] < 160) || power[i] > 1500)) break;
if ((power[i] < 160) && randint0(20)) break;