Fixed invisible enemies
This commit is contained in:
@@ -244,12 +244,14 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void update(){
|
public void update(){
|
||||||
hitTime -= Time.delta();
|
|
||||||
|
|
||||||
if(isDead()){
|
if(isDead()){
|
||||||
|
//dead enemies should get immediately removed
|
||||||
|
remove();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
hitTime -= Time.delta();
|
||||||
|
|
||||||
if(Net.client()){
|
if(Net.client()){
|
||||||
interpolate();
|
interpolate();
|
||||||
status.update(this);
|
status.update(this);
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public class MinimapRenderer implements Disposable{
|
|||||||
for(Unit unit : units){
|
for(Unit unit : units){
|
||||||
float rx = (unit.x - rect.x) / rect.width * w, ry = (unit.y - rect.y) / rect.width * h;
|
float rx = (unit.x - rect.x) / rect.width * w, ry = (unit.y - rect.y) / rect.width * h;
|
||||||
Draw.color(unit.getTeam().color);
|
Draw.color(unit.getTeam().color);
|
||||||
Fill.rect(x + rx, y + ry, baseSize / 2f, baseSize / 2f);
|
Fill.rect(x + rx, y + ry, io.anuke.arc.scene.ui.layout.Unit.dp.scl(baseSize / 2f), io.anuke.arc.scene.ui.layout.Unit.dp.scl(baseSize / 2f));
|
||||||
}
|
}
|
||||||
|
|
||||||
Draw.color();
|
Draw.color();
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
#TODO set to true on release; see if it fixes things
|
#TODO set to true on release; see if it fixes things:
|
||||||
#android.enableD8.desugaring=false
|
#android.enableD8.desugaring=false
|
||||||
Reference in New Issue
Block a user