Misc minor fixes

This commit is contained in:
Anuken
2026-06-18 21:16:32 -04:00
parent 368e787f89
commit 7f67b1dbce
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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