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);
|
||||
}
|
||||
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user