Fix
This commit is contained in:
@@ -72,6 +72,8 @@ public class Vars implements Loadable{
|
||||
public static final int maxTextLength = 150;
|
||||
/** max player name length in bytes */
|
||||
public static final int maxNameLength = 40;
|
||||
/** shadow color for turrets */
|
||||
public static final float turretShadowColor = Color.toFloatBits(0, 0, 0, 0.22f);
|
||||
/** displayed item size when ingame. */
|
||||
public static final float itemSize = 5f;
|
||||
/** units outside of this bound will die instantly */
|
||||
|
||||
@@ -111,7 +111,7 @@ public class PointDefenseTurret extends Block{
|
||||
@Override
|
||||
public void draw(){
|
||||
Draw.rect(baseRegion, x, y);
|
||||
Draw.color(Color.toFloatBits(0, 0, 0, 0.22f));
|
||||
Draw.color(Vars.turretShadowColor);
|
||||
Draw.rect(region, x - (size / 2f), y - (size / 2f), rotation - 90);
|
||||
Draw.color();
|
||||
Draw.rect(region, x, y, rotation - 90);
|
||||
|
||||
@@ -106,7 +106,7 @@ public class TractorBeamTurret extends Block{
|
||||
@Override
|
||||
public void draw(){
|
||||
Draw.rect(baseRegion, x, y);
|
||||
Draw.color(Color.toFloatBits(0, 0, 0, 0.22f));
|
||||
Draw.color(Vars.turretShadowColor);
|
||||
Draw.rect(region, x - (size / 2f), y - (size / 2f), rotation - 90);
|
||||
Draw.color();
|
||||
Draw.rect(region, x, y, rotation - 90);
|
||||
|
||||
@@ -202,7 +202,7 @@ public abstract class Turret extends Block{
|
||||
|
||||
tr2.trns(rotation, -recoil);
|
||||
|
||||
Draw.color(Color.toFloatBits(0, 0, 0, 0.22f));
|
||||
Draw.color(Vars.turretShadowColor);
|
||||
Draw.rect(region, x + tr2.x - (size / 2f), y + tr2.y - (size / 2f), rotation - 90);
|
||||
Draw.color();
|
||||
drawer.get(this);
|
||||
|
||||
Reference in New Issue
Block a user