Removed CampaignData.java/GlobalData.java
This commit is contained in:
@@ -108,7 +108,7 @@ public class EntityGroup<T extends Entityc> implements Iterable<T>{
|
||||
public void intersect(float x, float y, float width, float height, Cons<? super T> out){
|
||||
//don't waste time for empty groups
|
||||
if(isEmpty()) return;
|
||||
tree.intersect(height, x, y, width, out);
|
||||
tree.intersect(x, y, width, height, out);
|
||||
}
|
||||
|
||||
public Seq<T> intersect(float x, float y, float width, float height){
|
||||
|
||||
@@ -201,7 +201,7 @@ public class Units{
|
||||
|
||||
/** Iterates over all units in a rectangle. */
|
||||
public static void nearby(Team team, float x, float y, float width, float height, Cons<Unitc> cons){
|
||||
teamIndex.tree(team).intersect(height, x, y, width, cons);
|
||||
teamIndex.tree(team).intersect(x, y, width, height, cons);
|
||||
}
|
||||
|
||||
/** Iterates over all units in a circle around this position. */
|
||||
|
||||
Reference in New Issue
Block a user