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);
}
if(outlineRegion.found() && top){
Draw.rect(outlineRegion,
wx, wy,
outlineRegion.width * Draw.scl * -Mathf.sign(flipSprite),
region.height * Draw.scl,
weaponRotation);
if(top){
drawOutline(unit, mount);
}
Draw.rect(region,