Fixed invisible enemies
This commit is contained in:
@@ -244,12 +244,14 @@ public abstract class BaseUnit extends Unit implements ShooterTrait{
|
||||
|
||||
@Override
|
||||
public void update(){
|
||||
hitTime -= Time.delta();
|
||||
|
||||
if(isDead()){
|
||||
//dead enemies should get immediately removed
|
||||
remove();
|
||||
return;
|
||||
}
|
||||
|
||||
hitTime -= Time.delta();
|
||||
|
||||
if(Net.client()){
|
||||
interpolate();
|
||||
status.update(this);
|
||||
|
||||
@@ -80,7 +80,7 @@ public class MinimapRenderer implements Disposable{
|
||||
for(Unit unit : units){
|
||||
float rx = (unit.x - rect.x) / rect.width * w, ry = (unit.y - rect.y) / rect.width * h;
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user