mirror of
https://github.com/glest/glest-source.git
synced 2025-08-22 16:02:50 +02:00
- attempt to fix additional oos issues
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user