From c54e3f3be5fea7fcf5518c577fba95abf1116235 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 20 Oct 2009 09:58:40 +0000 Subject: [PATCH] respecting ship->type->damage --- src/common/kernel/ship.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/kernel/ship.c b/src/common/kernel/ship.c index f0619cb35..d8fd4bac3 100644 --- a/src/common/kernel/ship.c +++ b/src/common/kernel/ship.c @@ -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; }