ParticleEffect#sizeInterp / Log usable RAM
This commit is contained in:
@@ -273,6 +273,7 @@ public class Turret extends ReloadTurret{
|
||||
}
|
||||
|
||||
if(hasAmmo()){
|
||||
if(Float.isNaN(reload)) rotation = 0;
|
||||
|
||||
if(timer(timerTarget, targetInterval)){
|
||||
findTarget();
|
||||
@@ -289,9 +290,7 @@ public class Turret extends ReloadTurret{
|
||||
}else{ //default AI behavior
|
||||
targetPosition(target);
|
||||
|
||||
if(Float.isNaN(rotation)){
|
||||
rotation = 0;
|
||||
}
|
||||
if(Float.isNaN(rotation)) rotation = 0;
|
||||
}
|
||||
|
||||
float targetRot = angleTo(targetPos);
|
||||
|
||||
Reference in New Issue
Block a user