From: Stas Sergeev Date: Wed, 27 Sep 2006 16:27:49 +0000 (+0000) Subject: bugfix in fry() and translation X-Git-Tag: 2.0~194 X-Git-Url: https://jxself.org/git/?p=super-star-trek.git;a=commitdiff_plain;h=c6572d37b244170f25b91413abe30427ae139350 bugfix in fry() and translation --- diff --git a/po/ru.po b/po/ru.po index 322c85e..add083d 100644 --- a/po/ru.po +++ b/po/ru.po @@ -2658,7 +2658,7 @@ msgstr "Скорость" #: src/reports.c:309 msgid "Energy" -msgstr "" +msgstr "Энергия" #: src/reports.c:311 msgid " (have crystals)" diff --git a/src/battle.c b/src/battle.c index ffcf55d..76bbe0c 100644 --- 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) { - 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 "));