respecting ship->type->damage

This commit is contained in:
Enno Rehling 2009-10-20 09:58:40 +00:00
parent 090c6665f0
commit c54e3f3be5
1 changed files with 1 additions and 1 deletions

View File

@ -149,7 +149,7 @@ findshipr(const region *r, int n)
void
damage_ship(ship * sh, double percent)
{
double damage = DAMAGE_SCALE * percent * sh->size + sh->damage;
double damage = DAMAGE_SCALE * sh->type->damage * percent * sh->size + sh->damage;
sh->damage = (int)damage;
}