projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix in fry() and translation
[super-star-trek.git]
/
src
/
battle.c
diff --git
a/src/battle.c
b/src/battle.c
index ffcf55d796e325b1010ed71f979374587a987375..76bbe0c4e7d8520d15cc2abee494788a2b9f12c7 100644
(file)
--- a/
src/battle.c
+++ b/
src/battle.c
@@
-520,8
+520,8
@@
static void fry(double hit)
extradm = (hit*game.damfac)/(ncrit*(75.0+25.0*Rand()));
game.damage[j] += extradm;
if (loop1 > 0) {
extradm = (hit*game.damfac)/(ncrit*(75.0+25.0*Rand()));
game.damage[j] += extradm;
if (loop1 > 0) {
- for (loop2
=2; loop2<=loop1 && j != cdam[loop2-1
]; loop2++) ;
- if (loop2
<=
loop1) continue;
+ for (loop2
= 0; loop2 < loop1 && j != cdam[loop2
]; loop2++) ;
+ if (loop2
<
loop1) continue;
ktr += 1;
if (ktr==3) skip(1);
proutn(_(" and "));
ktr += 1;
if (ktr==3) skip(1);
proutn(_(" and "));