Fixed #7752
This commit is contained in:
@@ -272,6 +272,7 @@ abstract class BuildingComp implements Posc, Teamc, Healthc, Buildingc, Timerc,
|
||||
//region utility methods
|
||||
|
||||
public boolean isDiscovered(Team viewer){
|
||||
if(viewer == null) return true;
|
||||
if(block.size <= 2){
|
||||
return fogControl.isDiscovered(viewer, tile.x, tile.y);
|
||||
}else{
|
||||
|
||||
@@ -77,6 +77,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
rotateMove(movement);
|
||||
}
|
||||
}
|
||||
|
||||
public void moveAt(Vec2 vector){
|
||||
moveAt(vector, type.accel);
|
||||
}
|
||||
@@ -84,6 +85,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
public void approach(Vec2 vector){
|
||||
vel.approachDelta(vector, type.accel * speed());
|
||||
}
|
||||
|
||||
public void rotateMove(Vec2 vec){
|
||||
moveAt(Tmp.v2.trns(rotation, vec.len()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user