Fixed wrong weapon outline height and code duplication (#6250)
* Fixed wrong weapon outline height and code duplication * Correct formatting
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user