Project

General

Profile

Bug #93 ยป 0016-Fix-bombard-rate-always-being-1.patch

Marko Lindqvist, 12/29/2023 05:30 PM

View differences:

common/combat.c
if (game.info.damage_reduces_bombard_rate && base_bombard_rate > 0) {
int rate = (base_bombard_rate * punit->hp) / utype->hp;
return MIN(rate, 1);
return MAX(rate, 1);
}
return base_bombard_rate;
    (1-1/1)