Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Twcash committed Feb 6, 2025
1 parent 0f51b57 commit 64b34ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/src/mindustry/world/draw/DrawArcSmelt.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void draw(Building build){
float fin = (rand.random(1f) + base) % 1f, fout = 1f - fin;
float angle = rand.random(360f);
float len = particleRad * Interp.pow2Out.apply(fin);
Lines.lineAngle(build.x + Angles.trnsx(angle, len) + x, build.y + Angles.trnsy(angle, len), + y, particleLen * fout * build.warmup());
Lines.lineAngle(build.x + Angles.trnsx(angle, len) + x, build.y + Angles.trnsy(angle, len) + y, angle, particleLen * fout * build.warmup());
}

Draw.blend();
Expand Down
3 changes: 1 addition & 2 deletions core/src/mindustry/world/draw/DrawCrucibleFlame.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@

public class DrawCrucibleFlame extends DrawBlock{
public Color flameColor = Color.valueOf("f58349"), midColor = Color.valueOf("f2d585");
public float flameRad = 1f, circleSpace = 2f, flameRadiusScl = 10f, flameRadiusMag = 0.6f, circleStroke = 1.5f;
public float x = 0, y = 0;
public float flameRad = 1f, circleSpace = 2f, flameRadiusScl = 10f, flameRadiusMag = 0.6f, circleStroke = 1.5f, x = 0, y = 0;
public float alpha = 0.5f;
public int particles = 30;
public float particleLife = 70f, particleRad = 7f, particleSize = 3f, fadeMargin = 0.4f, rotateScl = 1.5f;
Expand Down
4 changes: 2 additions & 2 deletions core/src/mindustry/world/draw/DrawRegion.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public void draw(Building build){
@Override
public void drawPlan(Block block, BuildPlan plan, Eachable<BuildPlan> list){
if(!drawPlan) return;
if(spinSprite) {
if(spinSprite){
Drawf.spinSprite(region, plan.drawx() + x, plan.drawy() + y, (buildingRotate ? plan.rotation * 90f : 0 + rotation));
} else {
}else{
Draw.rect(region, plan.drawx()+ x, plan.drawy() + y, (buildingRotate ? plan.rotation * 90f : 0 + rotation));
}
}
Expand Down

0 comments on commit 64b34ea

Please sign in to comment.