Fixed wrong weapon outline height and code duplication (#6250)

* Fixed wrong weapon outline height and code duplication

* Correct formatting
This commit is contained in:
Zelaux
2021-10-29 02:19:00 +05:00
committed by GitHub
parent cd5fb71b34
commit 95b6ac36fc

View File

@@ -177,12 +177,8 @@ public class Weapon implements Cloneable{
Drawf.shadow(wx, wy, shadow); Drawf.shadow(wx, wy, shadow);
} }
if(outlineRegion.found() && top){ if(top){
Draw.rect(outlineRegion, drawOutline(unit, mount);
wx, wy,
outlineRegion.width * Draw.scl * -Mathf.sign(flipSprite),
region.height * Draw.scl,
weaponRotation);
} }
Draw.rect(region, Draw.rect(region,