Bugfix Schiffschaden (Ouch)

This commit is contained in:
Enno Rehling 2007-02-05 21:30:45 +00:00
parent 6f45043f19
commit eb2603248d
1 changed files with 4 additions and 3 deletions

View File

@ -2603,9 +2603,10 @@ aftermath(battle * b)
if (du->ship) sh = du->ship; else sh = leftship(du); if (du->ship) sh = du->ship; else sh = leftship(du);
if (sh && fval(sh, SF_DAMAGED)) { if (sh && fval(sh, SF_DAMAGED)) {
int n = b->turn - 1; int n = b->turn - 2;
if (n>0) { if (n>0) {
damage_ship(sh, 0.05 * n); damage_ship(sh, 0.05 * n);
freset(sh, SF_DAMAGED);
} }
} }
} }