mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 03:00:29 +03:00
Misc minor fixes
This commit is contained in:
@@ -522,7 +522,7 @@ public class Drawf{
|
||||
|
||||
if(a >= 1f/255f){
|
||||
if(lod > 0.0001f){
|
||||
Draw.alpha(lod);
|
||||
Draw.alpha(lod * a);
|
||||
Draw.rect(start, x, y, start.width * scale * start.scl(), start.height * scale * start.scl(), rot + 180);
|
||||
Draw.rect(end, x2, y2, end.width * scale * end.scl(), end.height * scale * end.scl(), rot);
|
||||
Draw.alpha(a);
|
||||
|
||||
@@ -12,7 +12,7 @@ import java.util.concurrent.*;
|
||||
|
||||
/** WIP experimental point-sprite based particle renderer. */
|
||||
public class ParticleRenderer{
|
||||
static final boolean useAsync = true;
|
||||
static final boolean useAsync = !OS.isIos && !OS.isAndroid;
|
||||
static final int maxParticles = 100_000, maxParticlesPerFrame = 25_000;
|
||||
static final int particleSize =
|
||||
1 + //time
|
||||
|
||||
@@ -51,7 +51,7 @@ public class ItemTurret extends Turret{
|
||||
|
||||
stats.remove(Stat.itemCapacity);
|
||||
stats.add(Stat.ammo, StatValues.ammo(ammoTypes, name));
|
||||
stats.add(Stat.ammoCapacity, maxAmmo / ammoPerShot, StatUnit.shots);
|
||||
stats.add(Stat.ammoCapacity, maxAmmo / Math.max(ammoPerShot, 1), StatUnit.shots);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user