mirror of
https://github.com/glest/glest-source.git
synced 2025-02-25 04:02:30 +01:00
- attempt to fix additional oos issues
This commit is contained in:
parent
8b8267400a
commit
dc944b2a79
@ -2249,7 +2249,7 @@ void UnitUpdater::damage(Unit *attacker, const AttackSkillType* ast, Unit *attac
|
||||
damage /= distance+1;
|
||||
damage -= armor;
|
||||
damage *= damageMultiplier;
|
||||
damageMultiplier = truncateDecimal<double>(damageMultiplier,16);
|
||||
damage = truncateDecimal<double>(damage,16);
|
||||
|
||||
if(damage < 1) {
|
||||
damage= 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user